diff --git a/app/src/main/java/com/nextcloud/utils/fileNameValidator/FileNameValidator.kt b/app/src/main/java/com/nextcloud/utils/fileNameValidator/FileNameValidator.kt index 0cb7a88f6f..e2ff97618b 100644 --- a/app/src/main/java/com/nextcloud/utils/fileNameValidator/FileNameValidator.kt +++ b/app/src/main/java/com/nextcloud/utils/fileNameValidator/FileNameValidator.kt @@ -44,7 +44,9 @@ object FileNameValidator { if (capability.forbiddenFilenameCharacters.isTrue) { val invalidCharacter = name.find { - it.toString().matches(reservedWindowsChars) || it.toString().matches(reservedUnixChars) + it.toString().matches(reservedWindowsChars) || + it.toString().matches(reservedUnixChars) || + capability.forbiddenFilenameCharacterList.contains(it.toString()) } if (invalidCharacter != null) { return context.getString(R.string.file_name_validator_error_invalid_character, invalidCharacter)