mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Escape spaces in unnwrapped urls to avoid invalid URLs
This commit is contained in:
parent
dd03ca943d
commit
87a518703f
1 changed files with 4 additions and 1 deletions
|
@ -1462,7 +1462,10 @@ class OEMSecretsProvider implements InfoProviderInterface
|
||||||
|
|
||||||
//The real URL is stored in the 'event_link' query parameter
|
//The real URL is stored in the 'event_link' query parameter
|
||||||
if (isset($queryParams['event_link']) && trim($queryParams['event_link']) !== '') {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue