Skip to content

Commit

Permalink
Bug 0000705: Upload error with incomplete URL.
Browse files Browse the repository at this point in the history
+ Broken link in Admin/intro.php

git-svn-id: http://piwigo.org/svn/trunk@2033 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
vdigital committed Jun 12, 2007
1 parent e8c396c commit 174417b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/intro.php
Expand Up @@ -244,7 +244,7 @@
$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)
)
);
Expand Down
5 changes: 4 additions & 1 deletion upload.php
Expand Up @@ -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'];
}
Expand All @@ -140,6 +140,9 @@ function validate_upload( $temp_name, $my_max_file_size,
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;
Expand Down

0 comments on commit 174417b

Please sign in to comment.