-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
GpsPoint validator needs a rewrite because it returns true for the input "foo, bar" #135
Comments
Deprecation would be best then. |
I have checked it in the unit tests and confirm the problem. |
Another option would be to check if a number is included before conversion to double is done: laminas-validator/src/GpsPoint.php Lines 71 to 78 in ba665f5
|
Yah, using |
This will fail with the current test cases because coordinates like laminas-validator/test/GPSPointTest.php Lines 79 to 86 in ba665f5
|
Signed-off-by: codisart <[email protected]>
Signed-off-by: codisart <[email protected]>
Signed-off-by: codisart <[email protected]>
…number Signed-off-by: codisart <[email protected]>
Signed-off-by: codisart <[email protected]>
Signed-off-by: codisart <[email protected]>
Signed-off-by: codisart <[email protected]>
…number Signed-off-by: codisart <[email protected]>
Signed-off-by: codisart <[email protected]>
Signed-off-by: codisart <[email protected]>
Signed-off-by: codisart <[email protected]>
…number Signed-off-by: codisart <[email protected]>
Signed-off-by: codisart <[email protected]>
Signed-off-by: codisart <[email protected]>
Signed-off-by: codisart <[email protected]>
…number Signed-off-by: codisart <[email protected]>
Signed-off-by: codisart <[email protected]>
Signed-off-by: codisart <[email protected]>
Signed-off-by: codisart <[email protected]>
…number Signed-off-by: codisart <[email protected]>
Fix #135: better GPS point validator detection of invalid coordinate numeric conversions
Originally posted by @ajgale in #69 (comment)
The text was updated successfully, but these errors were encountered: