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:
commit
7bd9572aa1
|
@ -52,7 +52,7 @@ class UrlHelper {
|
||||||
$owner_attribute == "href") {
|
$owner_attribute == "href") {
|
||||||
return $rel_url;
|
return $rel_url;
|
||||||
// allow limited subset of inline base64-encoded images for IMG elements
|
// 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"]) &&
|
preg_match('%^image/(webp|gif|jpg|png|svg);base64,%', $rel_parts["path"]) &&
|
||||||
$owner_element == "img" &&
|
$owner_element == "img" &&
|
||||||
$owner_attribute == "src") {
|
$owner_attribute == "src") {
|
||||||
|
|
Loading…
Reference in New Issue