mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-23 04:41:16 +00:00
Merge pull request #757 from ProactiveServices/ProactiveServices-debugoptions
Permit numbers in debug option
This commit is contained in:
commit
1526326412
2 changed files with 2 additions and 2 deletions
|
@ -264,7 +264,7 @@ public class SettingsFragment extends PreferenceFragment
|
|||
|
||||
// Avoid any code injection.
|
||||
if (preference.getKey().equals(STTRACE)) {
|
||||
if (((String) o).matches("[a-z, ]*"))
|
||||
if (((String) o).matches("[0-9a-z, ]*"))
|
||||
requireRestart = true;
|
||||
else {
|
||||
Toast.makeText(getActivity(), R.string.toast_invalid_sttrace, Toast.LENGTH_SHORT).show();
|
||||
|
|
|
@ -326,7 +326,7 @@ Please report any problems you encounter via Github.</string>
|
|||
<string name="sttrace_title">Debug Options</string>
|
||||
|
||||
<!-- Toast after entering invalid STTRACE params -->
|
||||
<string name="toast_invalid_sttrace">Only a-z and \',\' are allowed in STTRACE options</string>
|
||||
<string name="toast_invalid_sttrace">Only 0-9, a-z and \',\' are allowed in STTRACE options</string>
|
||||
|
||||
<!-- Title for the preference to reset Syncthing indexes -->
|
||||
<string name="streset_title">Reset Database</string>
|
||||
|
|
Loading…
Reference in a new issue