MDL-76680 core: disable $USER->ignoresesskey on next page

This commit is contained in:
Petr Skoda
2023-03-11 10:37:56 +01:00
parent c7e549cda4
commit ef1ecd2ad3
+2
View File
@@ -796,6 +796,8 @@ if (empty($CFG->sessiontimeout)) {
$CFG->sessiontimeout = 8 * 60 * 60;
}
\core\session\manager::start();
// Prevent ignoresesskey hack from getting carried over to a next page.
unset($USER->ignoresesskey);
// Set default content type and encoding, developers are still required to use
// echo $OUTPUT->header() everywhere, anything that gets set later should override these headers.