-
Notifications
You must be signed in to change notification settings - Fork 419
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
Crash with querystring ?wb48617274=803E5708
#2312
Comments
This is because querystring values are parsed with
What's interesting is if you pass that value back, you get the error you ran into:
This is because A quick and dirty solution could be to compare the parsed value to def native_value(value):
"""Convert string value to native python values.
:param str value: value to interprete.
:returns: the value coerced to python type
"""
if isinstance(value, str):
try:
parsed_value = json.loads(value)
if parsed_value != float("inf"):
value = parsed_value
except ValueError:
return value
return value |
@dstaley would you be willing to file a PR with this fix and test? |
Thanks !!! |
Invalid Inf value when encoding double
The text was updated successfully, but these errors were encountered: