Skip to content

Commit cd71596

Browse files
authored
Issue #97: Fix for open redirect in logout function (#99)
* Fix for open redirect in logout function * modified to PARAM_LOCALURL
1 parent c370cb1 commit cd71596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ public function logoutpage_hook() {
642642
public function user_logout_userkey() {
643643
global $CFG, $USER;
644644

645-
$redirect = required_param('return', PARAM_URL);
645+
$redirect = required_param('return', PARAM_LOCALURL);
646646

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

0 commit comments

Comments
 (0)