Skip to content

Commit

Permalink
Limit save directory path to alphanumeric plus underline, dash & /
Browse files Browse the repository at this point in the history
This can be localized for non qwerty characters, but want to keep it
simple.  (Ideally a file picker should be used along with the Storage
Access Framework so that files can be saved anywhere, including to cloud
services.)
  • Loading branch information
fat-tire committed Sep 27, 2018
1 parent 905e20c commit 73a72ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,8 @@
<string name="config_storage_path">Storage Folder Path</string>
<string name="config_storage_page_hint">Where captured media is stored</string>

<!-- accepted digits for directory name -- may vary for locale/platform/etc.
Skipping periods, spaces, and other special characters to keep it simple -->
<string name="path_chars">0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_/</string>

</resources>
1 change: 1 addition & 0 deletions src/main/res/xml/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
android:summary="@string/config_storage_page_hint"
android:title="@string/config_storage_path"
android:defaultValue="/phoneypot"
android:digits="@string/path_chars"
/>

<Preference
Expand Down

0 comments on commit 73a72ef

Please sign in to comment.