Escape spaces in unnwrapped urls to avoid invalid URLs

This commit is contained in:
Jan Böhmer 2024-09-09 16:23:12 +02:00
parent dd03ca943d
commit 87a518703f

View file

@ -1462,7 +1462,10 @@ class OEMSecretsProvider implements InfoProviderInterface
//The real URL is stored in the 'event_link' query parameter
if (isset($queryParams['event_link']) && trim($queryParams['event_link']) !== '') {
return $queryParams['event_link'];
$url = $queryParams['event_link'];
//Replace any spaces in the URL by %20 to avoid invalid URLs
return str_replace(' ', '%20', $url);
}
}