diff options
author | RedMatrix <info@friendica.com> | 2015-02-24 06:31:14 +1100 |
---|---|---|
committer | RedMatrix <info@friendica.com> | 2015-02-24 06:31:14 +1100 |
commit | 426f01d849b02768802b83e49865807465390a7e (patch) | |
tree | edabcad5d90c6f46449fb493bcf2e34adc2579c2 | |
parent | 18f5e269ce88eb569c0ff6ae8da0990a8b255570 (diff) | |
parent | 8d0377466657a02c2e0bbeacd2af0a181ceda898 (diff) | |
download | volse-hubzilla-426f01d849b02768802b83e49865807465390a7e.tar.gz volse-hubzilla-426f01d849b02768802b83e49865807465390a7e.tar.bz2 volse-hubzilla-426f01d849b02768802b83e49865807465390a7e.zip |
Merge pull request #910 from zzottel/master
make redirections restriction in z_fetch_url() work
-rw-r--r-- | include/network.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/network.php b/include/network.php index a7127c1a2..6874063ab 100644 --- a/include/network.php +++ b/include/network.php @@ -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); } } |