MDL-41819 try to work around max_input_vars restriction
This commit is contained in:
@@ -712,6 +712,10 @@ if (!empty($CFG->profilingenabled)) {
|
||||
}
|
||||
}
|
||||
|
||||
// Hack to get around max_input_vars restrictions,
|
||||
// we need to do this after session init to have some basic DDoS protection.
|
||||
workaround_max_input_vars();
|
||||
|
||||
// Process theme change in the URL.
|
||||
if (!empty($CFG->allowthemechangeonurl) and !empty($_GET['theme'])) {
|
||||
// we have to use _GET directly because we do not want this to interfere with _POST
|
||||
|
||||
Reference in New Issue
Block a user