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

master
Andrew Dolgov 11 years ago
parent 62e7136b74
commit c722c0be17

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

Loading…
Cancel
Save