Revert "rewrite_relative_url: do not skip urls containing :"

This reverts commit a547fef6ab.
This commit is contained in:
Andrew Dolgov 2016-02-20 12:02:34 +03:00
parent a547fef6ab
commit 7bbe94bc93
1 changed files with 3 additions and 1 deletions

View File

@ -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)