-
Bug
-
Resolution: Fixed
-
Minor
-
3.6, 3.7
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
MOODLE_36_STABLE
-
Looking for uses of preg_quote() in combination with # found a couple of places needing changes in order to continue working the same. Both being "double-conversions" that due the nature of the new preg_quote(), now escaping hashes (#), were not working anymore:
- backup/util/helper/restore_log_rule.class.php:249
- mod/lesson/pagetypes/shortanswer.php:106
This is about to fix those 2 cases, surely replacing both by a preg_quote() safe string like '%@@%@@%'.