From 80d32fc93aa93d0b56e0cfc82a025d6547c04d6f Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sun, 5 Mar 2023 11:12:31 +0100 Subject: [PATCH] MDL-76680 core: disable $USER->ignoresesskey on next page --- lib/setup.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/setup.php b/lib/setup.php index 6c300f5ecc2..e711c2ed552 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -850,6 +850,8 @@ foreach ($pluginswithfunction as $plugins) { } \core\session\manager::start(); +// Prevent ignoresesskey hack from getting carried over to a next page. +unset($USER->ignoresesskey); if (!empty($CFG->proxylogunsafe) || !empty($CFG->proxyfixunsafe)) { if (!empty($CFG->proxyfixunsafe)) {