diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2014-12-08 23:43:43 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-10 08:22:06 +0100 |
commit | 60b2dd6ab4870a9ea331303afb62294451cb7e43 (patch) | |
tree | ee1d5c43644934af2f0ad3a67f8d10d640b43296 /apps/files/ajax | |
parent | ed96f8c628ded6593d34fd2746c2da40534d49bd (diff) | |
download | nextcloud-server-60b2dd6ab4870a9ea331303afb62294451cb7e43.tar.gz nextcloud-server-60b2dd6ab4870a9ea331303afb62294451cb7e43.zip |
Skip headers that can not be split
Diffstat (limited to 'apps/files/ajax')
-rw-r--r-- | apps/files/ajax/newfile.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files/ajax/newfile.php b/apps/files/ajax/newfile.php index 1b971785a44..72540894e69 100644 --- a/apps/files/ajax/newfile.php +++ b/apps/files/ajax/newfile.php @@ -119,6 +119,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); |