mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-19756 Fixed regression in popup_form()
This commit is contained in:
parent
b0a5e1bf59
commit
0affac4d65
3 changed files with 26 additions and 19 deletions
|
@ -15,11 +15,11 @@
|
|||
}
|
||||
|
||||
if (strpos($jump, $CFG->wwwroot) === 0) { // Anything on this site
|
||||
redirect(urldecode($jump));
|
||||
redirect(new moodle_url(urldecode($jump)));
|
||||
} else if (preg_match('/^[a-z]+\.php\?/', $jump)) {
|
||||
redirect(urldecode($jump));
|
||||
redirect(new moodle_url(urldecode($jump)));
|
||||
}
|
||||
|
||||
redirect($_SERVER['HTTP_REFERER']); // Return to sender, just in case
|
||||
redirect(new moodle_url($_SERVER['HTTP_REFERER'])); // Return to sender, just in case
|
||||
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue