check if lat/long is a number

Signed-off-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
Robert Langhammer 2022-02-13 10:09:11 +01:00
parent 3e1ef546a9
commit dc04d0609c
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,9 @@
<?php
$lat = $_GET['lat'];
$lo = $_GET['long'];
if ((!is_numeric($lat)) || (!is_numeric($lo))) {exit("lat/long not numeric!");};
$hoodfile = shell_exec("./get_hood.sh $lat $lo");
echo $hoodfile;