Skip headers that can not be split

remotes/origin/fix-10825
Victor Dubiniuk 12 years ago
parent f219f5a7a6
commit adc7135429
  1. 3
      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);

Loading…
Cancel
Save