Skip headers that can not be split

This commit is contained in:
Victor Dubiniuk 2014-12-08 23:43:43 +03:00
parent f219f5a7a6
commit adc7135429

View file

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