From 94af13946552b080cbf7024612e15cfabf4c8ebb Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 20 Feb 2014 15:11:27 +0000 Subject: [PATCH] * CalDAV/CardDAV: entries with urls containing url-encoded chars, eg. from Google calendar, were not send to clients (missing urldecoding in multiget report) --- addressbook/inc/class.addressbook_groupdav.inc.php | 2 +- calendar/inc/class.calendar_groupdav.inc.php | 2 +- infolog/inc/class.infolog_groupdav.inc.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addressbook/inc/class.addressbook_groupdav.inc.php b/addressbook/inc/class.addressbook_groupdav.inc.php index 818e029dd0..6daa353d6f 100644 --- a/addressbook/inc/class.addressbook_groupdav.inc.php +++ b/addressbook/inc/class.addressbook_groupdav.inc.php @@ -506,7 +506,7 @@ class addressbook_groupdav extends groupdav_handler if ($option['name'] == 'href') { $parts = explode('/',$option['data']); - if (($id = array_pop($parts))) + if (($id = urldecode(array_pop($parts)))) { $ids[] = groupdav_handler::$path_extension ? basename($id,groupdav_handler::$path_extension) : $id; } diff --git a/calendar/inc/class.calendar_groupdav.inc.php b/calendar/inc/class.calendar_groupdav.inc.php index b241478dac..ab8a9a7bcd 100644 --- a/calendar/inc/class.calendar_groupdav.inc.php +++ b/calendar/inc/class.calendar_groupdav.inc.php @@ -533,7 +533,7 @@ class calendar_groupdav extends groupdav_handler if ($option['name'] == 'href') { $parts = explode('/',$option['data']); - if (($id = array_pop($parts))) + if (($id = urldecode(array_pop($parts)))) { $cal_filters['query'][self::$path_attr][] = groupdav_handler::$path_extension ? basename($id,groupdav_handler::$path_extension) : $id; diff --git a/infolog/inc/class.infolog_groupdav.inc.php b/infolog/inc/class.infolog_groupdav.inc.php index e3e6a9e893..c7d56139f2 100644 --- a/infolog/inc/class.infolog_groupdav.inc.php +++ b/infolog/inc/class.infolog_groupdav.inc.php @@ -430,7 +430,7 @@ class infolog_groupdav extends groupdav_handler if ($option['name'] == 'href') { $parts = explode('/',$option['data']); - if (($id = basename(array_pop($parts)))) + if (($id = basename(urldecode(array_pop($parts))))) { $cal_filters[self::$path_attr][] = groupdav_handler::$path_extension ? basename($id,groupdav_handler::$path_extension) : $id;