mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
Fix emails with single quote in local address not getting parsed correctly (eg. test.o'test@example.com)
This commit is contained in:
parent
b14b3dcddc
commit
1517c5f323
@ -6913,8 +6913,12 @@ class Mail
|
||||
foreach($ret as $i => $adr)
|
||||
{
|
||||
//mailaddresses enclosed in single quotes like 'me@you.com' show up as 'me as mailbox and you.com' as host
|
||||
if ($adr->mailbox && stripos($adr->mailbox,"'")!==false) $adr->mailbox = str_replace("'","",$adr->mailbox);
|
||||
if ($adr->host && stripos($adr->host,"'")!==false) $adr->host = str_replace("'","",$adr->host);
|
||||
if ($adr->mailbox && stripos($adr->mailbox,"'")== 0 &&
|
||||
$adr->host && stripos($adr->host,"'")== (strlen($adr->host) -1))
|
||||
{
|
||||
$adr->mailbox = str_replace("'","",$adr->mailbox);
|
||||
$adr->host = str_replace("'","",$adr->host);
|
||||
}
|
||||
// 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