mirror of
https://github.com/nextcloud/android.git
synced 2024-12-18 06:51:55 +03:00
Add forbiddenFilenameCharacterList values coming from server
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
5d36d76175
commit
5800a45c22
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue