Skip to content
Snippets Groups Projects
Commit 4d2573bf authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #12709 from owncloud/fix-11955

Skip headers that can not be split
parents c36bac3a adc71354
No related branches found
No related tags found
No related merge requests found
...@@ -120,6 +120,9 @@ if($source) { ...@@ -120,6 +120,9 @@ if($source) {
$freeSpace = $storageStats['freeSpace']; $freeSpace = $storageStats['freeSpace'];
foreach($meta['wrapper_data'] as $header) { foreach($meta['wrapper_data'] as $header) {
if (strpos($header, ':') === false){
continue;
}
list($name, $value) = explode(':', $header); list($name, $value) = explode(':', $header);
if ('content-length' === strtolower(trim($name))) { if ('content-length' === strtolower(trim($name))) {
$length = (int) trim($value); $length = (int) trim($value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment