make sure source is something sensible
git-svn-id: file:///home/shish/svn/shimmie2/trunk@421 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
25b1ebad8b
commit
15ee93bf9b
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ class Upload extends Extension {
|
||||||
if(is_a($event, 'PageRequestEvent') && ($event->page_name == "upload")) {
|
if(is_a($event, 'PageRequestEvent') && ($event->page_name == "upload")) {
|
||||||
if(count($_FILES) + count($_POST) > 0) {
|
if(count($_FILES) + count($_POST) > 0) {
|
||||||
$tags = tag_explode($_POST['tags']);
|
$tags = tag_explode($_POST['tags']);
|
||||||
$source = $_POST['source'];
|
$source = isset($_POST['source']) ? $_POST['source'] : null;
|
||||||
if($this->can_upload()) {
|
if($this->can_upload()) {
|
||||||
$ok = true;
|
$ok = true;
|
||||||
foreach($_FILES as $file) {
|
foreach($_FILES as $file) {
|
||||||
|
|
Reference in a new issue