summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2016-02-20 12:02:34 +0300
committerAndrew Dolgov <[email protected]>2016-02-20 12:02:34 +0300
commit7bbe94bc93faed5118f2044de96ca2698c3e09eb (patch)
tree76f959300fb5a5c23efb95fd41d97719f12d27ec /include
parenta547fef6ab4da1d3691ac0f24aca8e9bb545bc25 (diff)
Revert "rewrite_relative_url: do not skip urls containing :"
This reverts commit a547fef6ab4da1d3691ac0f24aca8e9bb545bc25.
Diffstat (limited to 'include')
-rw-r--r--include/functions2.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/functions2.php b/include/functions2.php
index c0ebcff83..ed22a0623 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)