Browse Source

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

wrap-longitude#56
Severyn Kozak 10 years ago
parent
commit
953557b19a
  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