mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
since we allow ampersand in local-part of the emailaddress, we have to handle this while preprocessing template data
This commit is contained in:
parent
e41336f71c
commit
a09eb5e389
@ -118,11 +118,14 @@ class url_widget
|
||||
$value = $matches[1];
|
||||
$email = $matches[2];
|
||||
}
|
||||
elseif (strpos($email=$value,'@') !== false)
|
||||
elseif (($at_pos = strpos($email=$value,'@')) !== false)
|
||||
{
|
||||
if (strpos($email=$value,'&') !== false)
|
||||
if (($amp_pos = strpos(substr($value,$at_pos),'&')) !== false)
|
||||
{
|
||||
list($email,$addoptions) = explode('&',$value,2);
|
||||
//list($email,$addoptions) = explode('&',$value,2);
|
||||
$email = substr($value,0,$amp_pos+$at_pos);
|
||||
$addoptions = substr($value, $amp_pos+$at_pos+1);
|
||||
//error_log(__METHOD__.__LINE__.$email.' '.$addoptions);
|
||||
$rfc822 = $value = $email;
|
||||
}
|
||||
if (strlen($value) > $size) // shorten the name to size-2 plus '...'
|
||||
|
Loading…
Reference in New Issue
Block a user