summaryrefslogtreecommitdiff
path: root/plugins/no_iframes
diff options
context:
space:
mode:
authorsupahgreg <supahgreg@users.noreply.github.com>2025-10-11 01:41:56 +0000
committersupahgreg <supahgreg@users.noreply.github.com>2025-10-11 01:41:56 +0000
commit2d880e6c7dbdcabe87e9fbfc98835cc3b53eadd9 (patch)
treedd7ffed8d0951ce885a89f8d2c9b0f6f6da54816 /plugins/no_iframes
parent348d9ec12e203f4feea56c2a9ae1a7483a4326a7 (diff)
Add some DOMElement hints to help PHPStan.
Diffstat (limited to 'plugins/no_iframes')
-rw-r--r--plugins/no_iframes/init.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/no_iframes/init.php b/plugins/no_iframes/init.php
index dc297b60e..4f455d865 100644
--- a/plugins/no_iframes/init.php
+++ b/plugins/no_iframes/init.php
@@ -16,6 +16,7 @@ class No_Iframes extends Plugin {
$xpath = new DOMXpath($doc);
$entries = $xpath->query('//iframe');
+ /** @var DOMElement $entry */
foreach ($entries as $entry) {
if (!Sanitizer::iframe_whitelisted($entry))
$entry->parentNode->removeChild($entry);