We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Why does werkzeug.utils.secure_filename() remove a leading underscore? Is it safe to add it back after?
werkzeug.utils.secure_filename()
>>> from werkzeug import utils >>> utils.secure_filename('_why.py') 'why.py'
werkzeug/tests/test_utils.py
Line 298 in d129d17
The text was updated successfully, but these errors were encountered:
Seems to be for normalization purposes. You can do whatever you want to the filenames, but evaluating their security is up to you.
Sorry, something went wrong.
No branches or pull requests
Why does
werkzeug.utils.secure_filename()
remove a leading underscore? Is it safe to add it back after?werkzeug/tests/test_utils.py
Line 298 in d129d17
The text was updated successfully, but these errors were encountered: