Skip to content
New issue

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

2.12.1 #148

Closed
jsuiker opened this issue Jun 27, 2015 · 4 comments · Fixed by #149
Closed

2.12.1 #148

jsuiker opened this issue Jun 27, 2015 · 4 comments · Fixed by #149
Assignees
Labels

Comments

@jsuiker
Copy link

jsuiker commented Jun 27, 2015

This newest version breaks something but I have no idea what it is :)

My code in production looks like this:

req.sanitize('item').toString();

the value 'item' is an integer - when 0 the sanitize function returns undefined. any other integer seems fine. Downgrading my express-validator version in my package.json file to 2.11.0 restores functionality.

@rustybailey
Copy link
Collaborator

Thanks for reporting this! Should have a fix out shortly.

@rustybailey
Copy link
Collaborator

This fix is now on npm as 2.12.2.

@jsuiker
Copy link
Author

jsuiker commented Jun 27, 2015

Verified working, thanks Rusty!

@lock
Copy link

lock bot commented Jun 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants