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

rewrite_relative: prevent php warning when checking for unset content type in...

rewrite_relative: prevent php warning when checking for unset content type in EXTRA_SCHEMES_BY_CONTENT_TYPE
parent 74a247fc
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,7 @@ class UrlHelper {
return $rel_url;
// allow some extra schemes for links with feed-specified content type i.e. enclosures
} else if ($content_type &&
is_array(self::EXTRA_SCHEMES_BY_CONTENT_TYPE[$content_type]) &&
isset(self::EXTRA_SCHEMES_BY_CONTENT_TYPE[$content_type]) &&
in_array($rel_parts["scheme"], self::EXTRA_SCHEMES_BY_CONTENT_TYPE[$content_type])) {
return $rel_url;
// allow limited subset of inline base64-encoded images for IMG elements
......
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