From c670740a719f4c49667d10439d00dbd2facfd344 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 4 Oct 2011 07:27:33 +0000 Subject: [PATCH] fixed encoding issue with group-name containing a space, causing eg. OS X iCal to not display proxys --- phpgwapi/inc/class.groupdav_principals.inc.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.groupdav_principals.inc.php b/phpgwapi/inc/class.groupdav_principals.inc.php index d84490ad2a..011310d909 100644 --- a/phpgwapi/inc/class.groupdav_principals.inc.php +++ b/phpgwapi/inc/class.groupdav_principals.inc.php @@ -18,8 +18,6 @@ * to allow to check if required properties are set! * groupdav_principals::add_principal() converts simple associative props (name => value pairs) * to name => HTTP_WebDAV_Server(name, value) pairs. - * - * @todo All principal urls should either contain no account_lid (eg. base64 of it) or use urlencode($account_lid) */ class groupdav_principals extends groupdav_handler { @@ -645,7 +643,7 @@ class groupdav_principals extends groupdav_handler if ((in_array('A',$addressbook_home_set) || in_array((string)$id,$addressbook_home_set)) && is_numeric($id) && ($owner = $this->accounts->id2name($id))) { - $addressbooks[] = '/'.urlencode($owner).'/'; + $addressbooks[] = '/'.$owner.'/'; } } return $addressbooks;