fix(caldav): encoding inconsistencies in event search provider

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
Richard Steinmetz 2025-10-08 12:12:39 +02:00
parent fcbb8be904
commit c12ce7083c
No known key found for this signature in database
GPG key ID: 27137D9E7D273FB2
2 changed files with 2 additions and 1 deletions

View file

@ -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;
}

View file

@ -404,6 +404,7 @@ class EventsSearchProviderTest extends TestCase {
return [
['principals/users/john.doe', 'bGluay10by1yZW1vdGUucGhwL2Rhdi9jYWxlbmRhcnMvam9obi5kb2UvZm9vL2Jhci5pY3M='],
['principals/users/John Doe', 'bGluay10by1yZW1vdGUucGhwL2Rhdi9jYWxlbmRhcnMvSm9obiUyMERvZS9mb28vYmFyLmljcw=='],
['principals/users/john@doe', 'bGluay10by1yZW1vdGUucGhwL2Rhdi9jYWxlbmRhcnMvam9obkBkb2UvZm9vL2Jhci5pY3M='],
];
}