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

This commit is contained in:
Andrew Dolgov 2022-02-18 16:44:03 +03:00
parent 74a247fc5c
commit 168dc6fe57
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ class UrlHelper {
return $rel_url; return $rel_url;
// allow some extra schemes for links with feed-specified content type i.e. enclosures // allow some extra schemes for links with feed-specified content type i.e. enclosures
} else if ($content_type && } 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])) { in_array($rel_parts["scheme"], self::EXTRA_SCHEMES_BY_CONTENT_TYPE[$content_type])) {
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