Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sg_routes
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
TYPO3
sg_routes
Commits
86851eaa
Commit
86851eaa
authored
Feb 15, 2019
by
Kevin Ditscheid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUGFIX] Trim slashed sourceUrl as well as the redirect uri
parent
7bcafab6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Classes/Middleware/RedirectResolver.php
Classes/Middleware/RedirectResolver.php
+1
-1
No files found.
Classes/Middleware/RedirectResolver.php
View file @
86851eaa
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment