Fix phpcs
This commit is contained in:
parent
394dc4b403
commit
feb6e09a64
@ -692,7 +692,7 @@ class EmailCollector extends CommonObject
|
|||||||
function getEncodedUtf7($str) {
|
function getEncodedUtf7($str) {
|
||||||
if (function_exists('mb_convert_encoding')) {
|
if (function_exists('mb_convert_encoding')) {
|
||||||
# change spaces by entropy because mb_convert fail with spaces
|
# change spaces by entropy because mb_convert fail with spaces
|
||||||
$str=ereg_replace(" ","xyxy",$str);
|
$str=preg_replace("/ /", "xyxy", $str);
|
||||||
# if mb_convert work
|
# if mb_convert work
|
||||||
if ($str = mb_convert_encoding($str, "UTF-7")) {
|
if ($str = mb_convert_encoding($str, "UTF-7")) {
|
||||||
# change characters
|
# change characters
|
||||||
@ -704,9 +704,7 @@ class EmailCollector extends CommonObject
|
|||||||
# else
|
# else
|
||||||
} else {
|
} else {
|
||||||
# print error and return false
|
# print error and return false
|
||||||
echo "error: is not possible to encode this string '$str'.[".
|
$this->error = "error: is not possible to encode this string '".$str."'";
|
||||||
imap_last_error().
|
|
||||||
"]";
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user