mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
"removed prefered phone marker \"♥\" from url, causing 9829 to be appended to the phone-number otherwise"
This commit is contained in:
parent
9ba0957ba5
commit
df134f3588
@ -231,7 +231,7 @@ class url_widget
|
|||||||
$user = $GLOBALS['egw']->contacts->read('account:'.$GLOBALS['egw_info']['user']['account_id']);
|
$user = $GLOBALS['egw']->contacts->read('account:'.$GLOBALS['egw_info']['user']['account_id']);
|
||||||
$userphone = is_array($user) ? ($user['tel_work'] ? $user['tel_work'] : $user['tel_home']) : false;
|
$userphone = is_array($user) ? ($user['tel_work'] ? $user['tel_work'] : $user['tel_home']) : false;
|
||||||
}
|
}
|
||||||
$number = preg_replace('/[^0-9+]+/','',$number); // remove number formatting chars messing up the links
|
$number = preg_replace('/[^0-9+]+/','',str_replace('♥','',$number)); // remove number formatting chars messing up the links
|
||||||
|
|
||||||
return str_replace(array('%1','%u','%t'),array(urlencode($number),$GLOBALS['egw_info']['user']['account_lid'],$userphone),
|
return str_replace(array('%1','%u','%t'),array(urlencode($number),$GLOBALS['egw_info']['user']['account_lid'],$userphone),
|
||||||
$GLOBALS['egw_info']['server']['call_link']);
|
$GLOBALS['egw_info']['server']['call_link']);
|
||||||
|
Loading…
Reference in New Issue
Block a user