-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
Exception with invalid value for Float(): "0..5" #315
Comments
As per your backtrace, the error is not related to In any case, both methods work just fine for me on v2.5.1. Can you please upgrade and see what happens?
|
Hi. Sorry, yeah, it's with accept_language. Here's a simple pry with the latest version (2.5.1 also happens with my version 2.4.0)...
|
I see… where does that In case you're feeling adventurous, here's the RFC, from which I quote:
|
Oh, it was probably some bad browser agent out there. How about rescue with 0 if it's not a number? We get lots of security scans and they like to send bogus browser agents. |
Description
browser passes invalid number raises exception when calling is_mobile?
How to reproduce
Not sure, did not have the full browser info, agent was
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"
What do you expect
Expect to be false instead of exception
What happened instead
Received exception
Software:
Full backtrace
Report
Not applicable, was a customer's browser
The text was updated successfully, but these errors were encountered: