diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-12-09 09:52:59 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-09 09:52:59 +0100 |
commit | 4d2573bff7c345043983a1d483f29a7f62f7985f (patch) | |
tree | 9f0a215d5d6994aa167936300d1333c634ab1865 /apps | |
parent | c36bac3abdd4b41620bdebbc3391612aac620fb8 (diff) | |
parent | adc71354297f9825c848b53387dd8a8d78df6027 (diff) | |
download | nextcloud-server-4d2573bff7c345043983a1d483f29a7f62f7985f.tar.gz nextcloud-server-4d2573bff7c345043983a1d483f29a7f62f7985f.zip |
Merge pull request #12709 from owncloud/fix-11955
Skip headers that can not be split
Diffstat (limited to 'apps')
-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 b4d91514a2a..c162237fe92 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); |