-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(files): disallow illegal characters #40585
Conversation
9ef05d6
to
e3b2af4
Compare
d544b46
to
318ddfa
Compare
I disagree here, just because one system (Window) can not handle those symbols we should not hard forbid it here. See also the git blame of Especially we should not have multiple different character lists that we forbid, I would simply use |
Nice, I search for this, and I could only find a variable in files_external, which would ot have been proper to use.
I don't think that's a big of an issue to be honest, but I agree with you. EDITBTW, linux have a bit more than just Also, it seems many people do recommend to refrain from using some. EDIT2Do we actually support windows officially? If not, I would then close the other issue. |
Not as server plattform. But it's of course still bad UX when people create such files on ubuntu/mac and then share with windows users. The list you have matches the old value of the constant: So I would say the only disallowed chars are Some external storages have more restrict limits (SMB?), but I'd say it's fine to not block that in the UI in the beginning and just show an error afterwards. |
The const is a weird format though. It should be an array of string, not a string... |
318ddfa
to
be21386
Compare
be21386
to
ef1db8c
Compare
Done! Please review :) |
ef1db8c
to
019c48c
Compare
019c48c
to
53593b9
Compare
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
53593b9
to
dbeb526
Compare
Very nice solution 👍 |
fix #38614