-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Default fileExtension regex does not match plain
files.
#8698
Comments
Thanks for opening this issue!
|
Related: parse-community/Parse-SDK-JS#1979 |
I think the default regex should instead be |
From the web server point of view, the path component of a URI is case sensitive, so we cannot add the So to truly prevent HTML content files we'd need to block any case-style without using the If we don't keep the current case insensitive regex style, then the regex could be simply If we want to keep the case insensitive style then we could use
Btw, the current file extension regex looks wrong anyway as it won't allow extensions shorter than 3 or longer than 4 chars. |
Is it possible that a file could be uploaded with the extension |
If the file extension regex is |
🎉 This change has been released in version 7.0.0-alpha.26 |
🎉 This change has been released in version 7.0.0-beta.1 |
🎉 This change has been released in version 7.0.0 |
New Issue Checklist
Issue Description
The current default
fileExtension
regex ("^[^hH][^tT][^mM][^lL]?$"
) does not matchplain
.Steps to reproduce
Actual Outcome
Error
Expected Outcome
Should succeed
Environment
Server
FILL_THIS_OUT
FILL_THIS_OUT
FILL_THIS_OUT
Database
FILL_THIS_OUT
FILL_THIS_OUT
FILL_THIS_OUT
Client
FILL_THIS_OUT
FILL_THIS_OUT
Logs
The text was updated successfully, but these errors were encountered: