rewrite_relative_url: don't touch stuff which has sheme in it (closes #738)

This commit is contained in:
Andrew Dolgov 2013-07-07 11:23:59 +04:00
parent 62e7136b74
commit c722c0be17
1 changed files with 1 additions and 1 deletions

View File

@ -3788,7 +3788,7 @@
* @return string Absolute URL
*/
function rewrite_relative_url($url, $rel_url) {
if (strpos($rel_url, "magnet:") === 0) {
if (strpos($rel_url, ":") !== false) {
return $rel_url;
} else if (strpos($rel_url, "://") !== false) {
return $rel_url;