Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/multipartparser/AphrontMultipartPart.php
Context not available. | |||||
$parser->getHeaderContent(), | $parser->getHeaderContent(), | ||||
); | ); | ||||
if (strtolower($header_name) === 'content-disposition') { | if (@strtolower($header_name) === 'content-disposition') { | ||||
$pairs = $parser->getHeaderContentAsPairs(); | $pairs = $parser->getHeaderContentAsPairs(); | ||||
foreach ($pairs as $pair) { | foreach ($pairs as $pair) { | ||||
list($key, $value) = $pair; | list($key, $value) = $pair; | ||||
Context not available. | |||||
} | } | ||||
public function appendData($bytes) { | public function appendData($bytes) { | ||||
$this->byteSize += strlen($bytes); | $this->byteSize += @strlen($bytes); | ||||
if ($this->isVariable()) { | if ($this->isVariable()) { | ||||
$this->value .= $bytes; | $this->value .= $bytes; | ||||
Context not available. | |||||
$mime_type = 'application/octet-stream'; | $mime_type = 'application/octet-stream'; | ||||
foreach ($this->headers as $header) { | foreach ($this->headers as $header) { | ||||
list($name, $value) = $header; | list($name, $value) = $header; | ||||
if (strtolower($name) == 'content-type') { | if (@strtolower($name) == 'content-type') { | ||||
$mime_type = $value; | $mime_type = $value; | ||||
break; | break; | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0