Skip to content

Commit 87a5187

Browse files
committed
Escape spaces in unnwrapped urls to avoid invalid URLs
1 parent dd03ca9 commit 87a5187

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Services/InfoProviderSystem/Providers/OEMSecretsProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,10 @@ private function unwrapURL(?string $url): ?string
14621462

14631463
//The real URL is stored in the 'event_link' query parameter
14641464
if (isset($queryParams['event_link']) && trim($queryParams['event_link']) !== '') {
1465-
return $queryParams['event_link'];
1465+
$url = $queryParams['event_link'];
1466+
1467+
//Replace any spaces in the URL by %20 to avoid invalid URLs
1468+
return str_replace(' ', '%20', $url);
14661469
}
14671470
}
14681471

0 commit comments

Comments
 (0)