mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 08:41:29 +00:00
fix phpstan warnings in classes/sanitizer.php
This commit is contained in:
@@ -44,7 +44,7 @@ class Sanitizer {
|
|||||||
return $doc;
|
return $doc;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function iframe_whitelisted(DOMNode $entry): bool {
|
public static function iframe_whitelisted(DOMElement $entry): bool {
|
||||||
$src = parse_url($entry->getAttribute("src"), PHP_URL_HOST);
|
$src = parse_url($entry->getAttribute("src"), PHP_URL_HOST);
|
||||||
|
|
||||||
if (!empty($src))
|
if (!empty($src))
|
||||||
|
|||||||
Reference in New Issue
Block a user