-
Bug
-
Resolution: Fixed
-
Minor
-
4.0.1, 4.0.6, 4.1.1
Initialise_local_config_cache() contains discouraged addslashes() use for constructing of PHP code fragment - see https://docs.moodle.org/dev/Slashes for it's original use in Moodle 1.x, all uses of addslashes were previously removed from Moodle around 2.0.
Solution is to use var_export() to get variable content as PHP code - see https://www.php.net/manual/en/function.var-export.php