1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 03:11:30 +00:00

Permit numbers in debug option

This commit is contained in:
ProactiveServices 2016-10-08 10:05:08 +01:00
parent 4558171613
commit 8414d0dc76
2 changed files with 2 additions and 2 deletions

View file

@ -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();

View file

@ -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>