From a012a4ba2248ad3ca4a1d3205faac0c0a643f0af Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 30 Aug 2007 13:25:34 +0000 Subject: [PATCH] removed formatting chars from the phone-number in callto:-links, as the mess up the links --- addressbook/inc/class.uicontacts.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addressbook/inc/class.uicontacts.inc.php b/addressbook/inc/class.uicontacts.inc.php index 32f900ce28..8a03284362 100644 --- a/addressbook/inc/class.uicontacts.inc.php +++ b/addressbook/inc/class.uicontacts.inc.php @@ -1727,6 +1727,8 @@ $readonlys['button[vcard]'] = true; $user = $this->read('account:'.$GLOBALS['egw_info']['user']['account_id']); $userphone = is_array($user) ? ($user['tel_work'] ? $user['tel_work'] : $user['tel_home']) : false; } + $number = str_replace(array(' ','(',')','/','-'),'',$number); // remove number formatting chars messing up the links + $link = str_replace(array('%1','%u','%t'),array(urlencode($number),$GLOBALS['egw_info']['user']['account_lid'],$userphone), $this->config['call_link']); }