summaryrefslogtreecommitdiffstats
path: root/application/controllers/ResourceController.php
diff options
context:
space:
mode:
authormichael pereira2011-04-21 15:55:59 +0200
committermichael pereira2011-04-21 15:55:59 +0200
commit4d141b993337331b61945cc02c43cb15d89714e9 (patch)
tree38e42801af6fee086771eca48ff44d2b668f1986 /application/controllers/ResourceController.php
parentconfig fix (diff)
downloadpbs2-4d141b993337331b61945cc02c43cb15d89714e9.tar.gz
pbs2-4d141b993337331b61945cc02c43cb15d89714e9.tar.xz
pbs2-4d141b993337331b61945cc02c43cb15d89714e9.zip
Preboot gefixt
Diffstat (limited to 'application/controllers/ResourceController.php')
-rw-r--r--application/controllers/ResourceController.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index 3547818..4958f68 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -233,11 +233,10 @@ class ResourceController extends Zend_Controller_Action
$params = $this->_request->getParams();
$source = $_SERVER['REMOTE_ADDR'];
- if($params['title'] == ''){
- header('HTTP/1.0 400 Title must be set');
+ if($params['title'] == '' || $_FILES['preboot']['name'] == ''){
+ header('HTTP/1.0 400 Title and Preboot must be set');
die();
}
-
if($_FILES['preboot']['size'] == 0 && $_FILES['preboot']['name'] != ''){
header('HTTP/1.0 400 File must be larger than 0 bytes');
@@ -292,7 +291,7 @@ class ResourceController extends Zend_Controller_Action
$params = $this->_request->getParams();
$source = $_SERVER['REMOTE_ADDR'];
- if($params['title'] == ''){
+ if($params['title'] == '' || $_FILES['preboot']['name'] == ''){
header('HTTP/1.0 400 Title must be set');
die();
}