From 6811d0bde220d7632b9d6a7fa4f4931cc96324c8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 22 Sep 2020 14:54:15 +0300 Subject: use self:: in some places to invoke static methods from the same class --- classes/sanitizer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes/sanitizer.php') 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) { -- cgit v1.2.3-54-g00ecf