diff --git a/README.md b/README.md index 6fd3e02..9bb5c75 100644 --- a/README.md +++ b/README.md @@ -127,4 +127,8 @@ Export von Shape-Files ## Improvements * Rating durch Cookie absichern, so dass nicht zwei mal während einer Sitzung ein Maker betätigt werden kann. -* Alert nach Rating überarbeiten (z.B. mit Bootstrap) \ No newline at end of file +* Alert nach Rating überarbeiten (z.B. mit Bootstrap) + +## Probleme + +Ohne favicon.ico verliert Chrome die Session. \ No newline at end of file diff --git a/ajax/ajax_location_push.php b/ajax/ajax_location_push.php index fde9e30..2938bd3 100644 --- a/ajax/ajax_location_push.php +++ b/ajax/ajax_location_push.php @@ -18,6 +18,11 @@ $numLat = $_POST['lat']; $strDistrict = $_POST['district']; $boolUploadOk=false; +//Leere Einträge verhindern +if (empty($strUsername) || empty($numLng) || empty($numLat)) { + die("not valid!"); +} + if ($boolUpload && !empty($_FILES['uploadfile']['name'])) { $uploadfile = $uploaddir . basename($_FILES['uploadfile']['name']); $fileinfo = @getimagesize($_FILES["uploadfile"]["tmp_name"]); diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..2b64bbf Binary files /dev/null and b/favicon.ico differ