Commit 62379821 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 c19a4f44
......@@ -1219,13 +1219,13 @@ class Utils {
// if no headers, return FALSE
if ( !preg_match("/^(.*?)\r?\n\r?\n/s", $mail, $match) ) {
ZLog::Write(LOGLEVEL_DEBUG, "Utils::GetRawMailHeaders(): no header");
return FALSE;
return false;
}
$input = $match[1];
// if no headers, return FALSE
if ( $input == "" ) {
ZLog::Write(LOGLEVEL_DEBUG, "Utils::GetRawMailHeaders(): no header");
return FALSE;
return false;
}
// parse headers
$input = preg_replace("/\r?\n/", "\r\n", $input);
......
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