You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After sanitizing a string with the \u202f character, it is still present in the string. Should it get sanitized by sanitize-filename or is that expected?
The text was updated successfully, but these errors were encountered:
It looks like node's response.setHeader is what is rejecting the string. Since this module is about sanitizing strings to be safe as filenames in filesystems, I'm not sure sanitizing \u202f or other control characters response.setHeader rejects is appropriate. It looks like this package might help make sure your filename is safe for header use: https://github.com/jshttp/content-disposition
When streaming a filename with a
\u202f
character using express.js, it throws an error when setting theContent-Disposition
header:After sanitizing a string with the
\u202f
character, it is still present in the string. Should it get sanitized bysanitize-filename
or is that expected?The text was updated successfully, but these errors were encountered: