From: indiri69 Date: Thu, 22 Aug 2002 15:14:12 +0000 (+0000) Subject: Subject doesn't have comments X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=4b8699db024bf5bb70aafe258a405bc7fdb84d9a Subject doesn't have comments git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3413 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/class/mime.class.php b/class/mime.class.php index 627f345d..df8e0a75 100644 --- a/class/mime.class.php +++ b/class/mime.class.php @@ -60,7 +60,8 @@ class rfc822_header { $field = substr($line,0,$pos); $value = trim(substr($line,$pos+1)); - if(!preg_match('/^X.*/i',$field)) { + if(!preg_match('/^X.*/i',$field) && + !preg_match('/^Subject/i', $field)) { $value = $this->stripComments($value); } $this->parseField($field,$value); @@ -114,7 +115,7 @@ class rfc822_header $i++; } return $s; - } + } function parseField($field,$value) { @@ -1747,4 +1748,4 @@ class content_type } } -?> \ No newline at end of file +?>