WR489688: Security fix #30

This commit is contained in:
Sarah Cotton
2026-06-25 15:12:58 +01:00
parent f45918a277
commit 7b2106555b
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -293,6 +293,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.