Fixed ipwhitelist escaping issue #150

This commit is contained in:
Brendan Heywood
2019-03-28 14:29:22 +11:00
parent e94d9c94ea
commit dec4c7bf53
2 changed files with 3 additions and 3 deletions

View File

@@ -246,7 +246,7 @@ class outagelib {
}
// I know Moodle validation would clean up this field, but just in case, let's ensure no
// single-quotes (and double for the sake of it) are present otherwise it would break the code.
$allowedips = str_replace('\'"', '', $allowedips);
$allowedips = addslashes($allowedips);
$code = <<<'EOT'
<?php