summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormvn23 <schopdiedwaas@gmail.com>2013-06-19 23:44:45 +0200
committermvn23 <schopdiedwaas@gmail.com>2013-06-19 23:44:45 +0200
commita25bfa92917075d1ab26649c4d6d5bea6150e623 (patch)
treea4f1f3525d73a4402ec768b6d2615051a31606ef
parent46f97f4c389572eb1edac30d8cfa7086835c58fb (diff)
downloadnextcloud-server-a25bfa92917075d1ab26649c4d6d5bea6150e623.tar.gz
nextcloud-server-a25bfa92917075d1ab26649c4d6d5bea6150e623.zip
Update files.php
-rw-r--r--lib/files.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/files.php b/lib/files.php
index 5dd65e85a43..123c87eb5ff 100644
--- a/lib/files.php
+++ b/lib/files.php
@@ -45,7 +45,8 @@ class OC_Files {
*/
public static function get($dir, $files, $only_header = false) {
$xsendfile = false;
- if (isset($_SERVER['MOD_X_SENDFILE_ENABLED']) || isset($_SERVER['MOD_X_SENDFILE2_ENABLED']) ||
+ if (isset($_SERVER['MOD_X_SENDFILE_ENABLED']) ||
+ isset($_SERVER['MOD_X_SENDFILE2_ENABLED']) ||
isset($_SERVER['MOD_X_ACCEL_REDIRECT_ENABLED'])) {
$xsendfile = true;
}
@@ -172,7 +173,8 @@ class OC_Files {
header("X-Sendfile: " . $filename);
}
if (isset($_SERVER['MOD_X_SENDFILE2_ENABLED'])) {
- if (isset($_SERVER['HTTP_RANGE']) && preg_match('/\Abytes=(?P<start>[0-9]+)-(?P<end>[0-9]*)\z/', $_SERVER['HTTP_RANGE'], $range)) {
+ if (isset($_SERVER['HTTP_RANGE']) &&
+ preg_match("/\Abytes=(?P<start>[0-9]+)-(?P<end>[0-9]*)\z/", $_SERVER['HTTP_RANGE'], $range)) {
if ($range['end'] == "") {
$range['end'] = filesize($filename) - 1;
}