WR489688: Security fix #30

This commit is contained in:
Sarah Cotton
2026-06-25 15:10:18 +01:00
parent 40fccef237
commit 1a94b8e635
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -267,6 +267,10 @@ class outagelib {
// single-quotes (and double for the sake of it) are present otherwise it would break the code.
$allowedips = addslashes($allowedips);
// Escape the access key before substitution into the PHP literal to prevent
// code injection via a maliciously crafted access key value.
$accesskey = addslashes((string)$accesskey);
$cookiesecure = is_moodle_cookie_secure();
// Since Moodle 4.3 cookiehttponly is default to true and this CFG is not set.