aboutsummaryrefslogtreecommitdiffstats
path: root/upload.php
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2007-06-12 21:52:46 +0000
committervdigital <vdigital@piwigo.org>2007-06-12 21:52:46 +0000
commit174417b8cfe43ef60ed8daf9c7657c1932eb35bb (patch)
tree1f8e3b2323145af24a8e5004cb5eef457bddf773 /upload.php
parente8c396c06b6f8352bc2119038b89a4a4b80c67f6 (diff)
Bug 0000705: Upload error with incomplete URL.
+ Broken link in Admin/intro.php git-svn-id: http://piwigo.org/svn/trunk@2033 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--upload.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/upload.php b/upload.php
index e304af70f..3ba555486 100644
--- a/upload.php
+++ b/upload.php
@@ -124,7 +124,7 @@ function validate_upload( $temp_name, $my_max_file_size,
}
//-------------------------------------------------- access authorization check
-if (is_numeric($_GET['cat']))
+if (isset($_GET['cat']) and is_numeric($_GET['cat']))
{
$page['category'] = $_GET['cat'];
}
@@ -140,6 +140,9 @@ if (isset($page['category']))
die('Fatal: you take a wrong way, bye bye');
}
}
+else { // $page['category'] may be set by a futur plugin but without it
+ die('Fatal: you take a wrong way, bye bye');
+}
$error = array();
$page['upload_successful'] = false;