From 78bea9d8149a4773e02493c71b4edf3c835c1a45 Mon Sep 17 00:00:00 2001 From: Severyn Kozak Date: Wed, 6 May 2015 11:04:05 -0400 Subject: [PATCH] sanitiser/_geo.js: don't pass base to parseFloat(). --- sanitiser/_geo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanitiser/_geo.js b/sanitiser/_geo.js index 3c90c48e..c3ae409b 100644 --- a/sanitiser/_geo.js +++ b/sanitiser/_geo.js @@ -81,7 +81,7 @@ function sanitize_bbox( clean, param ) { * @param {bool} latlon_is_required */ function sanitize_coord( coord, clean, param, latlon_is_required ) { - var value = parseFloat( param, 10 ); + var value = parseFloat( param ); if ( !isNaN( value ) ) { if( coord === 'lat' && check_lat.is_invalid( value ) ){ throw new Error( 'invalid ' + check_lat.error_msg );