Add max length to secure_filename()
#2420
Labels
enhancement
good first issue
Comment on this issue if you'd like to volunteer to work on this. Thanks!
Milestone
There is already a
TODO
in the source code (falcon/util/misc.py):Actually implement this
max_length
parameter according to the above note.Also add a new option to
MultipartParseOptions
that is used when evaluatingpart.secure_filename
.In order to avoid a breaking change, both values should be
None
by default, with a note that starting from Falcon 5.0, this value will non-nullable, with the new default ofNN
characters (please suggest).The text was updated successfully, but these errors were encountered: