Commit f1031f63 authored by YANO Takashi's avatar YANO Takashi

ZP-1202 Part of subject or from may be in junk string. Released under the...

ZP-1202 Part of subject or from may be in junk string. Released under the Affero GNU General Public License (AGPL) version 3.
parent 6731378e
...@@ -1216,13 +1216,13 @@ class Utils { ...@@ -1216,13 +1216,13 @@ class Utils {
* @return string array * @return string array
*/ */
private static function GetRawMailHeaders(&$mail) { private static function GetRawMailHeaders(&$mail) {
// if no headers, return default headers // if no headers, return FALSE
if ( !preg_match("/^(.*?)\r?\n\r?\n/s", $mail, $match) ) { if ( !preg_match("/^(.*?)\r?\n\r?\n/s", $mail, $match) ) {
ZLog::Write(LOGLEVEL_DEBUG, "Utils::GetRawMailHeaders(): no header"); ZLog::Write(LOGLEVEL_DEBUG, "Utils::GetRawMailHeaders(): no header");
return FALSE; return FALSE;
} }
$input = $match[1]; $input = $match[1];
// if no headers, return default headers ] // if no headers, return FALSE
if ( $input == "" ) { if ( $input == "" ) {
ZLog::Write(LOGLEVEL_DEBUG, "Utils::GetRawMailHeaders(): no header"); ZLog::Write(LOGLEVEL_DEBUG, "Utils::GetRawMailHeaders(): no header");
return FALSE; return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment