diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2014-12-08 23:43:43 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2014-12-08 23:43:43 +0300 |
commit | adc71354297f9825c848b53387dd8a8d78df6027 (patch) | |
tree | 42508be7d0ed3e36eba6f46b064fa9ecc6d225dc /apps | |
parent | f219f5a7a62fe88b364b9a5f50e9730eba1ee84c (diff) |
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); |