mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
MDL-44642 session: Remove 403 from require_sesskey()
This should not have been added in core at this time (needs a separate issue).
This commit is contained in:
parent
de1c6859cc
commit
f9b431b873
@ -27,7 +27,10 @@ require_once(dirname(__DIR__) . '/config.php');
|
||||
|
||||
// Require the session key - want to make sure that this isn't called
|
||||
// maliciously to keep a session alive longer than intended.
|
||||
require_sesskey();
|
||||
if (!confirm_sesskey()) {
|
||||
header('HTTP/1.1 403 Forbidden');
|
||||
print_error('invalidsesskey');
|
||||
}
|
||||
|
||||
// Update the session.
|
||||
\core\session\manager::touch_session(session_id());
|
||||
|
@ -82,7 +82,6 @@ function confirm_sesskey($sesskey=NULL) {
|
||||
*/
|
||||
function require_sesskey() {
|
||||
if (!confirm_sesskey()) {
|
||||
header('HTTP/1.1 403 Forbidden');
|
||||
print_error('invalidsesskey');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user