From adc71354297f9825c848b53387dd8a8d78df6027 Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Mon, 8 Dec 2014 23:43:43 +0300 Subject: [PATCH] Skip headers that can not be split --- apps/files/ajax/newfile.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/files/ajax/newfile.php b/apps/files/ajax/newfile.php index b4d91514a2..c162237fe9 100644 --- a/apps/files/ajax/newfile.php +++ b/apps/files/ajax/newfile.php @@ -120,6 +120,9 @@ if($source) { $freeSpace = $storageStats['freeSpace']; foreach($meta['wrapper_data'] as $header) { + if (strpos($header, ':') === false){ + continue; + } list($name, $value) = explode(':', $header); if ('content-length' === strtolower(trim($name))) { $length = (int) trim($value);