1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 03:15:56 +00:00

Fix operator precedence

This commit is contained in:
Philip Klempin
2021-06-18 12:52:29 +02:00
parent f16fc3bf41
commit 1d4d3bc49c

View File

@@ -52,7 +52,7 @@ class UrlHelper {
$owner_attribute == "href") {
return $rel_url;
// allow limited subset of inline base64-encoded images for IMG elements
} else if ($rel_parts["scheme"] ?? "" == "data" &&
} else if (($rel_parts["scheme"] ?? "") == "data" &&
preg_match('%^image/(webp|gif|jpg|png|svg);base64,%', $rel_parts["path"]) &&
$owner_element == "img" &&
$owner_attribute == "src") {