Merge pull request 'Fix operator precedence' (#39) from klempin/tt-rss:master into master

Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/39
This commit is contained in:
fox 2021-06-18 13:58:19 +03:00
commit 7bd9572aa1
1 changed files with 1 additions and 1 deletions

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") {