mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
attempt to fix egroupware.org Bug#2832, invalid emailaddress when emailaddress (personal part) contains double quotes
This commit is contained in:
parent
161e29bb0f
commit
f4c8c61719
@ -255,7 +255,6 @@
|
||||
if ($_REQUEST['preset'][$name]) $sessionData[$name] = $_REQUEST['preset'][$name];
|
||||
}
|
||||
}
|
||||
|
||||
// is the to address set already?
|
||||
if (!empty($_REQUEST['send_to']))
|
||||
{
|
||||
@ -393,10 +392,17 @@
|
||||
//error_log(__METHOD__.__LINE__.array2string(array('key'=>$key,'value'=>$value)));
|
||||
$selectDestination = html::select('destination[]', $destination, $this->destinations, false, "style='width: 100%;' onchange='fm_compose_changeInputType(this)'");
|
||||
$this->t->set_var('select_destination', $selectDestination);
|
||||
$address = bofelamimail::htmlentities($value, $this->displayCharset);
|
||||
$this->t->set_var('address', $address);
|
||||
$this->t->parse('destinationRows','destination_row',True);
|
||||
$destinationRows++;
|
||||
$value = htmlspecialchars_decode($value,ENT_COMPAT);
|
||||
$value = str_replace("\"\"",'"',$value);
|
||||
$address_array = imap_rfc822_parse_adrlist((get_magic_quotes_gpc()?stripslashes($value):$value), '');
|
||||
foreach((array)$address_array as $addressObject) {
|
||||
if ($addressObject->host == '.SYNTAX-ERROR.') continue;
|
||||
$address = imap_rfc822_write_address($addressObject->mailbox,$addressObject->host,$addressObject->personal);
|
||||
$address = bofelamimail::htmlentities($address, $this->displayCharset);
|
||||
$this->t->set_var('address', $address);
|
||||
$this->t->parse('destinationRows','destination_row',True);
|
||||
$destinationRows++;
|
||||
}
|
||||
}
|
||||
}
|
||||
while($destinationRows < 3) {
|
||||
|
Loading…
Reference in New Issue
Block a user