diff options
author | Andrew Dolgov <[email protected]> | 2020-09-22 14:54:15 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-09-22 14:54:15 +0300 |
commit | 6811d0bde220d7632b9d6a7fa4f4931cc96324c8 (patch) | |
tree | 84e66e1427ea53c0a2a0473cabade723d1e6ce47 /classes/sanitizer.php | |
parent | b5710baf3439343bbc65c2fc1586aefd0b94d99c (diff) |
use self:: in some places to invoke static methods from the same class
Diffstat (limited to 'classes/sanitizer.php')
-rw-r--r-- | classes/sanitizer.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/sanitizer.php b/classes/sanitizer.php index 8e008ef85..9f3bfada0 100644 --- a/classes/sanitizer.php +++ b/classes/sanitizer.php @@ -124,7 +124,7 @@ class Sanitizer { $entries = $xpath->query('//iframe'); foreach ($entries as $entry) { - if (!Sanitizer::iframe_whitelisted($entry)) { + if (!self::iframe_whitelisted($entry)) { $entry->setAttribute('sandbox', 'allow-scripts'); } else { if (is_prefix_https()) { @@ -163,7 +163,7 @@ class Sanitizer { } $doc->removeChild($doc->firstChild); //remove doctype - $doc = Sanitizer::strip_harmful_tags($doc, $allowed_elements, $disallowed_attributes); + $doc = self::strip_harmful_tags($doc, $allowed_elements, $disallowed_attributes); $entries = $xpath->query('//iframe'); foreach ($entries as $entry) { |