From df134f358872ce18869737724ba1e37f4efee223 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 12 Mar 2009 11:41:58 +0000 Subject: [PATCH] "removed prefered phone marker \"♥\" from url, causing 9829 to be appended to the phone-number otherwise" --- etemplate/inc/class.url_widget.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.url_widget.inc.php b/etemplate/inc/class.url_widget.inc.php index 16bdb7d5dd..02854bf693 100644 --- a/etemplate/inc/class.url_widget.inc.php +++ b/etemplate/inc/class.url_widget.inc.php @@ -231,7 +231,7 @@ class url_widget $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; } - $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), $GLOBALS['egw_info']['server']['call_link']);