summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2014-12-08 23:43:43 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2014-12-08 23:43:43 +0300
commitadc71354297f9825c848b53387dd8a8d78df6027 (patch)
tree42508be7d0ed3e36eba6f46b064fa9ecc6d225dc /apps
parentf219f5a7a62fe88b364b9a5f50e9730eba1ee84c (diff)
downloadnextcloud-server-adc71354297f9825c848b53387dd8a8d78df6027.tar.gz
nextcloud-server-adc71354297f9825c848b53387dd8a8d78df6027.zip
Skip headers that can not be split
Diffstat (limited to 'apps')
-rw-r--r--apps/files/ajax/newfile.php3
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);