diff options
| author | Simon | 2011-04-15 11:58:01 +0200 |
|---|---|---|
| committer | Simon | 2011-04-15 11:58:01 +0200 |
| commit | bf01b7ea2c69ae0a64aca42fa291866f20b77654 (patch) | |
| tree | 75bdb3788e994f01a1c63febc859909b301f9804 /application | |
| parent | Content-Length in Resources (diff) | |
| download | pbs2-bf01b7ea2c69ae0a64aca42fa291866f20b77654.tar.gz pbs2-bf01b7ea2c69ae0a64aca42fa291866f20b77654.tar.xz pbs2-bf01b7ea2c69ae0a64aca42fa291866f20b77654.zip | |
Content-Length fix
Diffstat (limited to 'application')
| -rw-r--r-- | application/controllers/ResourceController.php | 4 |
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); } |
