mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
MDL-39701 prevent string filtering before finishing 2.5 upgrade
This commit is contained in:
parent
c3bc6f1217
commit
f18c764a7c
@ -1296,7 +1296,7 @@ function format_string($string, $striplinks = true, $options = NULL) {
|
||||
//We'll use a in-memory cache here to speed up repeated strings
|
||||
static $strcache = false;
|
||||
|
||||
if (empty($CFG->version) or $CFG->version < 2010072800 or during_initial_install()) {
|
||||
if (empty($CFG->version) or $CFG->version < 2013051400 or during_initial_install()) {
|
||||
// do not filter anything during installation or before upgrade completes
|
||||
return $string = strip_tags($string);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user