Commit 86851eaa authored by Kevin Ditscheid's avatar Kevin Ditscheid

[BUGFIX] Trim slashed sourceUrl as well as the redirect uri

parent 7bcafab6
......@@ -137,7 +137,7 @@ class RedirectResolver implements MiddlewareInterface {
} else {
$sourceUrl = new Uri($redirect['source_url']);
$uri = $uri->withPath(\trim($uri->getPath(), '/'));
$sourceUrl = $sourceUrl->withPath(\trim($sourceUrl->getPath()));
$sourceUrl = $sourceUrl->withPath(\trim($sourceUrl->getPath(), '/'));
if ($sourceUrl->getHost() === '') {
$uri = $uri->withHost('')->withScheme(NULL);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment