X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=include%2Ffunctions2.php;h=c0ebcff83141066ae8e6b27c2e50032db59fba8b;hb=a547fef6ab4da1d3691ac0f24aca8e9bb545bc25;hp=ed22a0623b9564401ee54294f9eb8ecd043b370c;hpb=4f100ece19f41314dea0fc540bc957762e6ba262;p=tt-rss.git 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)