mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Try to stripe extra quoting from personal part of email address
This commit is contained in:
parent
1e95f0608b
commit
d50f444965
@ -7314,6 +7314,18 @@ class Mail
|
||||
$adr->mailbox = str_replace("'","",$adr->mailbox);
|
||||
$adr->host = str_replace("'","",$adr->host);
|
||||
}
|
||||
|
||||
|
||||
// try to strip extra quoting or slashes from personal part
|
||||
$adr->personal = stripslashes($adr->personal);
|
||||
if ($adr->personal && (stripos($adr->personal, '"') == 0 &&
|
||||
substr($adr->personal, -1) == '"') ||
|
||||
(substr($adr->personal, -2) == '""'))
|
||||
{
|
||||
$adr->personal = str_replace('"', "", $adr->personal);
|
||||
}
|
||||
|
||||
|
||||
// no mailbox or host part as 'Xr\xc3\xa4hlyz, User <mailboxpart1.mailboxpart2@yourhost.com>' is parsed as 2 addresses separated by ','
|
||||
//#'Xr\xc3\xa4hlyz, User <mailboxpart1.mailboxpart2@yourhost.com>'
|
||||
//#Horde_Mail_Rfc822_List Object([_data:protected] => Array(
|
||||
|
Loading…
Reference in New Issue
Block a user