diff options
author | vdigital <vdigital@piwigo.org> | 2007-06-12 22:00:59 +0000 |
---|---|---|
committer | vdigital <vdigital@piwigo.org> | 2007-06-12 22:00:59 +0000 |
commit | 106c39d7bd042c78f4863e271af6da941a6bd082 (patch) | |
tree | 63d357971a4352e38540d319e8f60c8e0a8a6820 | |
parent | fcb3c824a0ee2c750453de1ccc12dd4a9af8f0b0 (diff) |
Bug 0000705: Upload error with incomplete URL.
+ Broken link in Admin/intro.php
git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2034 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r-- | admin/intro.php | 2 | ||||
-rw-r--r-- | upload.php | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/admin/intro.php b/admin/intro.php index e23c5e9ab..7c50ce2ce 100644 --- a/admin/intro.php +++ b/admin/intro.php @@ -244,7 +244,7 @@ if ($nb_waiting > 0) $template->assign_block_vars( 'waiting', array( - 'URL' => PHPWG_ROOT_PATH.'admin.php?page=waiting', + 'URL' => PHPWG_ROOT_PATH.'admin.php?page=upload', 'INFO' => sprintf(l10n('%d waiting for validation'), $nb_waiting) ) ); 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; |