Bug in the doubleval() function that only affected the production system

pull/1/head
Philipp Dunkel 15 years ago
parent 45a79bce52
commit 414ea03c2c

@ -2289,8 +2289,8 @@
$newreg = intval(array_key_exists('newreg',$_REQUEST)?$_REQUEST['newreg']:0);
$locid = intval(array_key_exists('locid',$_REQUEST)?$_REQUEST['locid']:0);
$name = array_key_exists('name',$_REQUEST)?mysql_real_escape_string(strip_tags($_REQUEST['name'])):"";
$long = array_key_exists('longitude',$_REQUEST)?doubleval($_REQUEST['longitude']):"";
$lat = array_key_exists('latitude', $_REQUEST)?doubleval($_REQUEST['latitude']):"";
$long = array_key_exists('longitude',$_REQUEST)?ereg_replace("[^-0-9\.]","",$_REQUEST['longitude']):"";
$lat = array_key_exists('latitude', $_REQUEST)?ereg_replace("[^-0-9\.]","",$_REQUEST['latitude']):"";
$action = array_key_exists('action',$_REQUEST)?$_REQUEST['action']:"";
if($locid > 0 && $action == "edit")

Loading…
Cancel
Save