This commit is contained in:
Andreas Schamberger 2011-11-01 08:28:08 +01:00
parent e0049c906d
commit da344ad03f
3 changed files with 6 additions and 7 deletions

View File

@ -50,8 +50,7 @@ class Parser
$lines = preg_split("/\r\n|\n/", $mimeMessage);
foreach ($lines as $line) {
// ignore http status code and POST *
if ( substr( $line, 0, 5 ) == 'HTTP/' || substr( $line, 0, 4 ) == 'POST')
{
if (substr($line, 0, 5) == 'HTTP/' || substr($line, 0, 4) == 'POST') {
continue;
}
if (isset($currentHeader)) {
@ -129,7 +128,7 @@ class Parser
* e.g. Content-Type: multipart/related; boundary=boundary; type=text/xml;
* start="<123@abc>"
*
* @see https://labs.omniti.com/alexandria/trunk/OmniTI/Mail/Parser.php
* Based on: https://labs.omniti.com/alexandria/trunk/OmniTI/Mail/Parser.php
*
* @param \BeSimple\SoapCommon\Mime\PartHeader $part Header part
* @param string $headerName Header name

View File

@ -103,7 +103,7 @@ abstract class PartHeader
/**
* Generates a header field value from the given value paramater.
*
* @param array(string=>string)|string $value
* @param array(string=>string)|string $value Header value
* @return string
*/
protected function generateHeaderFieldValue($value)
@ -128,7 +128,7 @@ abstract class PartHeader
* Quote string with '"' if it contains one of the special characters:
* "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\" / <"> / "/" / "[" / "]" / "?" / "="
*
* @param string $string
* @param string $string String to quote
* @return string
*/
private function quoteValueString($string)