summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authorSimon2011-04-15 11:58:01 +0200
committerSimon2011-04-15 11:58:01 +0200
commitbf01b7ea2c69ae0a64aca42fa291866f20b77654 (patch)
tree75bdb3788e994f01a1c63febc859909b301f9804 /application/controllers
parentContent-Length in Resources (diff)
downloadpbs2-bf01b7ea2c69ae0a64aca42fa291866f20b77654.tar.gz
pbs2-bf01b7ea2c69ae0a64aca42fa291866f20b77654.tar.xz
pbs2-bf01b7ea2c69ae0a64aca42fa291866f20b77654.zip
Content-Length fix
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/ResourceController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index 2e1ec1a..c2ed55b 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -70,7 +70,7 @@ class ResourceController extends Zend_Controller_Action
chdir("../resources/bootos/$bootosID/initramfs/");
$initname = array_pop(scandir("./"));
- header("Content-Length: ".filesize($initname));
+ header("Content-Length: ".filesize(getcwd()."/".$initname));
passthru( "cat ".$initname);
}
@@ -145,7 +145,7 @@ class ResourceController extends Zend_Controller_Action
chdir("../resources/bootos/$bootosID/kernel/");
$kernelname = array_pop(scandir("./"));
- header("Content-Length: ".filesize($kernelname));
+ header("Content-Length: ".filesize(getcwd()."/".$kernelname));
passthru( "cat ". $kernelname);
}