summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2014-12-08 23:43:43 +0300
committerMorris Jobke <hey@morrisjobke.de>2014-12-10 08:22:06 +0100
commit60b2dd6ab4870a9ea331303afb62294451cb7e43 (patch)
treeee1d5c43644934af2f0ad3a67f8d10d640b43296 /apps/files/ajax
parented96f8c628ded6593d34fd2746c2da40534d49bd (diff)
downloadnextcloud-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.php3
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);