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