mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
Merge pull request #55623 from nextcloud/fix/caldav/principal-encoding-inconsistencies
This commit is contained in:
commit
6c362cb38d
2 changed files with 2 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ class EventsSearchProvider extends ACalendarSearchProvider implements IFiltering
|
|||
[,, $principalId] = explode('/', $principalUri, 3);
|
||||
|
||||
return $this->urlGenerator->linkTo('', 'remote.php') . '/dav/calendars/'
|
||||
. rawurlencode($principalId) . '/'
|
||||
. str_replace(' ', '%20', $principalId) . '/'
|
||||
. $calendarUri . '/'
|
||||
. $calendarObjectUri;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -404,6 +404,7 @@ class EventsSearchProviderTest extends TestCase {
|
|||
return [
|
||||
['principals/users/john.doe', 'bGluay10by1yZW1vdGUucGhwL2Rhdi9jYWxlbmRhcnMvam9obi5kb2UvZm9vL2Jhci5pY3M='],
|
||||
['principals/users/John Doe', 'bGluay10by1yZW1vdGUucGhwL2Rhdi9jYWxlbmRhcnMvSm9obiUyMERvZS9mb28vYmFyLmljcw=='],
|
||||
['principals/users/john@doe', 'bGluay10by1yZW1vdGUucGhwL2Rhdi9jYWxlbmRhcnMvam9obkBkb2UvZm9vL2Jhci5pY3M='],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue