Skip to content

Commit

Permalink
Issue #97: Fix for open redirect in logout function (#99)
Browse files Browse the repository at this point in the history
* Fix for open redirect in logout function

* modified to PARAM_LOCALURL
  • Loading branch information
Cyber-Wo0dy authored Nov 11, 2023
1 parent c370cb1 commit cd71596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ public function logoutpage_hook() {
public function user_logout_userkey() {
global $CFG, $USER;

$redirect = required_param('return', PARAM_URL);
$redirect = required_param('return', PARAM_LOCALURL);

// We redirect when user's session in Moodle already has expired
// or the user is still logged in using "userkey" auth type.
Expand Down

0 comments on commit cd71596

Please sign in to comment.