mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
MDL-75005 core: remove invalid addslashes()
This commit is contained in:
parent
3312a6814a
commit
507306a6ca
1 changed files with 2 additions and 2 deletions
|
@ -796,8 +796,8 @@ function initialise_local_config_cache() {
|
||||||
if (!empty($CFG->siteidentifier) && !file_exists($bootstrapcachefile)) {
|
if (!empty($CFG->siteidentifier) && !file_exists($bootstrapcachefile)) {
|
||||||
$contents = "<?php
|
$contents = "<?php
|
||||||
// ********** This file is generated DO NOT EDIT **********
|
// ********** This file is generated DO NOT EDIT **********
|
||||||
\$CFG->siteidentifier = '" . addslashes($CFG->siteidentifier) . "';
|
\$CFG->siteidentifier = " . var_export($CFG->siteidentifier, true) . ";
|
||||||
\$CFG->bootstraphash = '" . hash_local_config_cache() . "';
|
\$CFG->bootstraphash = " . var_export(hash_local_config_cache(), true) . ";
|
||||||
// Only if the file is not stale and has not been defined.
|
// Only if the file is not stale and has not been defined.
|
||||||
if (\$CFG->bootstraphash === hash_local_config_cache() && !defined('SYSCONTEXTID')) {
|
if (\$CFG->bootstraphash === hash_local_config_cache() && !defined('SYSCONTEXTID')) {
|
||||||
define('SYSCONTEXTID', ".SYSCONTEXTID.");
|
define('SYSCONTEXTID', ".SYSCONTEXTID.");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue