diff options
author | Andreas Jakum <aj-gh@users.noreply.github.com> | 2020-12-26 23:08:38 +0100 |
---|---|---|
committer | Andreas Jakum <aj-gh@users.noreply.github.com> | 2020-12-26 23:08:38 +0100 |
commit | fd9ee80f9babc4bc795e99e08f88140888b44455 (patch) | |
tree | 58826c6382a12ba3ce9c67f6cdbd8bbd546633f3 | |
parent | 75242961eedea7bf397c3736305ff1b4a01efd02 (diff) |
-rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,8 +1,8 @@ <?php session_start(); -if(isset($_REQUEST['lat']) && preg_match('/^\-?[0-9\.]+$/', $_REQUEST['lat']) $lat = $_REQUEST['lat']; -if(isset($_REQUEST['lng']) && preg_match('/^\-?[0-9\.]+$/', $_REQUEST['lng']) $lng = $_REQUEST['lng']; +if(isset($_REQUEST['lat']) && preg_match('/^\-?[0-9\.]+$/', $_REQUEST['lat'])) $lat = $_REQUEST['lat']; +if(isset($_REQUEST['lng']) && preg_match('/^\-?[0-9\.]+$/', $_REQUEST['lng'])) $lng = $_REQUEST['lng']; if(isset($_REQUEST['res']) && preg_match('/^[0-9]+$/', $_REQUEST['res'])) $res = $_REQUEST['res']; //default values |