From: Andrew Dolgov Date: Sat, 20 Feb 2016 08:57:37 +0000 (+0300) Subject: rewrite_relative_url: do not skip urls containing : X-Git-Tag: 16.3~24 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a547fef6ab4da1d3691ac0f24aca8e9bb545bc25;p=tt-rss.git rewrite_relative_url: do not skip urls containing : --- diff --git a/include/functions2.php b/include/functions2.php index ed22a062..c0ebcff8 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -2048,9 +2048,7 @@ * @return string Absolute URL */ function rewrite_relative_url($url, $rel_url) { - if (strpos($rel_url, ":") !== false) { - return $rel_url; - } else if (strpos($rel_url, "://") !== false) { + if (strpos($rel_url, "://") !== false) { return $rel_url; } else if (strpos($rel_url, "//") === 0) { # protocol-relative URL (rare but they exist)