Commit 6731378e 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 f0dd391e
...@@ -1179,11 +1179,11 @@ class Utils { ...@@ -1179,11 +1179,11 @@ class Utils {
/** /**
* if string is ISO-2022-JP, convert this into utf-8 * if string is ISO-2022-JP, convert this into utf-8
* *
* @access public * @access private
* @param $nonencstr, $utf8str * @param $nonencstr, $utf8str
* @return string * @return string
*/ */
public static function ConvertRawHeader2Utf8($nonencstr, $utf8str) { private static function ConvertRawHeader2Utf8($nonencstr, $utf8str) {
if ( !isset($nonencstr) ) { if ( !isset($nonencstr) ) {
return $utf8str; return $utf8str;
} }
...@@ -1208,14 +1208,14 @@ class Utils { ...@@ -1208,14 +1208,14 @@ class Utils {
/** /**
* get raw mail headers as key-value pair array * get raw mail headers as key-value pair array
* *
* @access public * @access private
* @param &$mail: this is reference of the caller's $mail, * @param &$mail: this is reference of the caller's $mail,
* not copy. So the call to * not copy. So the call to
* Utils::GetRawMailHeaders() will not require * Utils::GetRawMailHeaders() will not require
* memory for $mail. * memory for $mail.
* @return string array * @return string array
*/ */
public static function GetRawMailHeaders(&$mail) { private static function GetRawMailHeaders(&$mail) {
// if no headers, return default headers // if no headers, return default headers
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");
......
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