MDL-41819 try to work around max_input_vars restriction

This commit is contained in:
Petr Škoda
2013-11-18 10:50:26 +08:00
parent 828aff67d9
commit db217f006c
8 changed files with 199 additions and 71 deletions
+4
View File
@@ -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