Skip to content
Snippets Groups Projects
Commit 800ebd63 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

revise previous a little bit more

parent 69f261c4
No related branches found
No related tags found
No related merge requests found
......@@ -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") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment