issue60, make sure provided photo id is numeric
authorAndreas Unterkircher <unki@netshadow.at>
Sun, 29 Jul 2007 09:11:54 +0000 (09:11 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Sun, 29 Jul 2007 09:11:54 +0000 (09:11 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@264 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.class.php

index e500dbe41c09dd427ca872202c51a672f4ea8adb..e0a87a567e184ac83174bc222eee0745dc4ddc61 100644 (file)
@@ -126,7 +126,7 @@ class PHPFSPOT {
                $_SESSION['selected_tags'] = $this->extractTags($_GET['tags']);
                $_SESSION['start_action'] = 'showp';
             }
-            if(isset($_GET['id'])) {
+            if(isset($_GET['id']) && is_numeric($_GET['id'])) {
                $_SESSION['current_photo'] = $_GET['id'];
                $_SESSION['start_action'] = 'showp';
             }