Correctly handle files which contain '%' as invalid files (#1343)

* Fix checking filenames which contain '%' which should be classified as invalid based on the MS OneDrive API Invalid characters designation
This commit is contained in:
abraunegg 2021-03-15 16:24:55 +11:00 committed by GitHub
parent 10606293f7
commit 6bec0ddc64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,7 +205,7 @@ bool isValidName(string path)
// Leading whitespace and trailing whitespace/dot
`^\s.*|^.*[\s\.]$|` ~
// Invalid characters
`.*[<>:"\|\?*/\\].*|` ~
`.*[<>:"\|\?*/\\%].*|` ~
// Reserved device name and trailing .~
`(?:^CON|^PRN|^AUX|^NUL|^COM[0-9]|^LPT[0-9])(?:[.].+)?$`
);