diff options
author | Andrew Dolgov <[email protected]> | 2016-02-20 11:57:37 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2016-02-20 11:57:37 +0300 |
commit | a547fef6ab4da1d3691ac0f24aca8e9bb545bc25 (patch) | |
tree | d79fefdab1b89870cb41e2cdb86c88259b234547 /include | |
parent | 4f100ece19f41314dea0fc540bc957762e6ba262 (diff) |
rewrite_relative_url: do not skip urls containing :
Diffstat (limited to 'include')
-rw-r--r-- | include/functions2.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/functions2.php b/include/functions2.php index ed22a0623..c0ebcff83 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) |