summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-29 09:11:54 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-29 09:11:54 +0000
commitf32fe065bf1569d42d4e8921bc0cab0aa98ef782 (patch)
treebc5d86d19c33b9e26a0401531166025e500c7557 /phpfspot.class.php
parent7f6d907624ab03de8a4044ae0ddcdad3a132f13c (diff)
issue60, make sure provided photo id is numeric
git-svn-id: file:///var/lib/svn/phpfspot/trunk@264 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php2
1 files changed, 1 insertions, 1 deletions
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';
}