Merge pull request #12709 from owncloud/fix-11955

Skip headers that can not be split
This commit is contained in:
Morris Jobke 2014-12-09 09:52:59 +01:00
commit 4d2573bff7
1 changed files with 3 additions and 0 deletions

View File

@ -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);