From 414ea03c2cfedeb3dbb46a32b4b719caa356cb81 Mon Sep 17 00:00:00 2001 From: Philipp Dunkel Date: Thu, 3 Dec 2009 20:50:54 +0000 Subject: [PATCH] Bug in the doubleval() function that only affected the production system --- includes/account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/account.php b/includes/account.php index 031b66c..2701177 100644 --- a/includes/account.php +++ b/includes/account.php @@ -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")