diff --git a/gpslogger/src/main/java/com/mendhak/gpslogger/ui/fragments/display/GenericViewFragment.java b/gpslogger/src/main/java/com/mendhak/gpslogger/ui/fragments/display/GenericViewFragment.java index 272a62356..9c2dbb272 100644 --- a/gpslogger/src/main/java/com/mendhak/gpslogger/ui/fragments/display/GenericViewFragment.java +++ b/gpslogger/src/main/java/com/mendhak/gpslogger/ui/fragments/display/GenericViewFragment.java @@ -120,7 +120,7 @@ public void requestToggleLogging() { formElements.add(Input.plain(PreferenceNames.CUSTOM_FILE_NAME) .required() // Don't allow *, &, %, / or \ in the file name. - .validatePattern("^[^*&%/\\]+$", "Invalid file name") + .validatePattern("^[^*&%/\\\\]+$", "Invalid file name") .suggest(new ArrayList<>(cachedList)) .text(preferenceHelper.getCustomFileName()) );