From f32fe065bf1569d42d4e8921bc0cab0aa98ef782 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sun, 29 Jul 2007 09:11:54 +0000 Subject: [PATCH] issue60, make sure provided photo id is numeric git-svn-id: file:///var/lib/svn/phpfspot/trunk@264 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- phpfspot.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpfspot.class.php b/phpfspot.class.php index e500dbe..e0a87a5 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -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'; } -- 2.25.1