Browse Source

sanitiser/_geo.js: don't pass base to parseFloat().

pull/178/head
Severyn Kozak 10 years ago committed by Julian Simioni
parent
commit
78bea9d814
  1. 2
      sanitiser/_geo.js

2
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 );

Loading…
Cancel
Save