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
Hi guys,
I think we should escape a few more dangerous characters for SQL and Javascript.
These two:
'
\
' is dangerous in sql and javascript and \ is too.
node_modules/validator/lib/filter.js @@ -64,6 +64,7 @@ Filter.prototype.trim = function(chars) { Filter.prototype.escape = function() { this.modify(this.str.replace(/&/g, '&') .replace(/"/g, '"') + .replace(/'/g, ''') + .replace(/\\/g, 'C;')
The text was updated successfully, but these errors were encountered:
Happy to accept a PR 😄
Sorry, something went wrong.
534a35e
No branches or pull requests
Hi guys,
I think we should escape a few more dangerous characters for SQL and Javascript.
These two:
'
\
'
is dangerous in sql and javascript and\
is too.The text was updated successfully, but these errors were encountered: