Skip to content

Commit

Permalink
MDL-39701 prevent string filtering before finishing 2.5 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jun 26, 2013
1 parent 75f1afe commit 0b675e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/weblib.php
Expand Up @@ -1290,7 +1290,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);
}
Expand Down

0 comments on commit 0b675e0

Please sign in to comment.