* CalDAV/CardDAV: entries with urls containing url-encoded chars, eg. from Google calendar, were not send to clients (missing urldecoding in multiget report)

This commit is contained in:
Ralf Becker 2014-02-20 15:12:05 +00:00
parent 6dfaec26d8
commit 5fc2b3631b
3 changed files with 3 additions and 3 deletions

View File

@ -397,7 +397,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;
}

View File

@ -422,7 +422,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;

View File

@ -335,7 +335,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;