Merge pull request #910 from zzottel/master

make redirections restriction in z_fetch_url() work
This commit is contained in:
RedMatrix 2015-02-24 06:31:14 +11:00
commit 426f01d849

View File

@ -109,7 +109,7 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) {
$url_parsed = @parse_url($newurl);
if (isset($url_parsed)) {
@curl_close($ch);
return z_fetch_url($newurl,$binary,$redirects++,$opts);
return z_fetch_url($newurl,$binary,++$redirects,$opts);
}
}