diff --git a/include/network.php b/include/network.php index d2732e039..d398d8fa0 100644 --- a/include/network.php +++ b/include/network.php @@ -93,7 +93,7 @@ function fetch_url($url,$binary = false, &$redirects = 0, $timeout = 0, $accept_ $newurl = trim(array_pop($matches)); } if(strpos($newurl,'/') === 0) - $newurl = $url . $newurl; + $newurl = $old_location_info["scheme"]."://".$old_location_info["host"].$newurl; if (filter_var($newurl, FILTER_VALIDATE_URL)) { $redirects++; return fetch_url($newurl,$binary,$redirects,$timeout);