|
|
|
|
@ -131,11 +131,13 @@ class OC_Files { |
|
|
|
|
if ($filesize > -1) { |
|
|
|
|
header("Content-Length: ".$filesize); |
|
|
|
|
} |
|
|
|
|
list($storage) = \OC\Files\Filesystem::resolvePath($filename); |
|
|
|
|
if ($xsendfile) { |
|
|
|
|
list($storage) = \OC\Files\Filesystem::resolvePath(\OC\Files\Filesystem::getView()->getAbsolutePath($filename)); |
|
|
|
|
if ($storage instanceof \OC\Files\Storage\Local) { |
|
|
|
|
self::addSendfileHeader(\OC\Files\Filesystem::getLocalFile($filename)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} elseif ($zip or !\OC\Files\Filesystem::file_exists($filename)) { |
|
|
|
|
header("HTTP/1.0 404 Not Found"); |
|
|
|
|
$tmpl = new OC_Template('', '404', 'guest'); |
|
|
|
|
|