MDL-41819 try to work around max_input_vars restriction

This commit is contained in:
Petr Škoda
2013-12-02 08:30:15 +08:00
parent 3dc57a1203
commit 219fda2b67
8 changed files with 199 additions and 71 deletions
+4
View File
@@ -780,6 +780,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