Skip to content

Commit

Permalink
Open Redirect fix, thanks Max Boll
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielnetoDotCom committed Mar 14, 2022
1 parent 24a25e4 commit 77e9aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objects/login.json.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
Category::clearCacheCount();
TimeLogEnd($timeLog, __LINE__);

if (!preg_match("|^" . $global['webSiteRootURL'] . "|", $_POST['redirectUri'])) {
if(!isSameDomain($global['webSiteRootURL'], $_POST['redirectUri'])){
$_POST['redirectUri'] = $global['webSiteRootURL'];
}
_error_log("Start Login Request redirectUri=" . $_POST['redirectUri']);
Expand Down

0 comments on commit 77e9aa6

Please sign in to comment.