Comments (2)
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
from node-sanitize-filename.
Got it. Thanks, @parshap.
from node-sanitize-filename.
Related Issues (20)
- Allow targetting specific file systems HOT 14
- Verify that the replacement itself is valid? HOT 4
- ./ at the beginning of a file name produces a hidden file HOT 2
- Replace characters with similar HOT 7
- Empty filename default HOT 2
- Add vendor to .npmignore HOT 3
- Browser Usage? HOT 5
- option to sanitize within BMP (Basic Multilingual Plane) HOT 1
- please put comma character also for sanitization. HOT 1
- Strict mode to throw on error? HOT 2
- typescript typings... HOT 2
- If last path name is number, sanitize make error. HOT 1
- Not deleting dots HOT 1
- Electron Buffer issue
- Configure additional invalid characters HOT 2
- Add an option to specify an extension HOT 1
- ES6 import/export syntax to use module HOT 2
- [unsure] Adjust how sanitize is made available for Typescript? HOT 2
- Analysis: 100% of dependency updates in this repository can be merged.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-sanitize-filename.