Skip to content

Commit

Permalink
Merge branch '3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Guite committed Sep 20, 2021
2 parents c5ca20f + d5909c9 commit 41900dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/system/UsersModule/Controller/AccessController.php
Expand Up @@ -221,6 +221,10 @@ private function sanitizeReturnUrl(Request $request, $returnUrl = null)
return $returnUrl;
}

if (false !== mb_strpos($returnUrl, $request->getUriForPath(''))) {
return $returnUrl;
}

if ('/' !== mb_substr($returnUrl, 0, 1)) {
$returnUrl = '/' . $returnUrl;
}
Expand Down

0 comments on commit 41900dd

Please sign in to comment.