diff options
author | zottel <github@zottel.net> | 2015-02-23 14:53:10 +0100 |
---|---|---|
committer | zottel <github@zottel.net> | 2015-02-23 14:53:10 +0100 |
commit | 8d0377466657a02c2e0bbeacd2af0a181ceda898 (patch) | |
tree | edabcad5d90c6f46449fb493bcf2e34adc2579c2 /include/network.php | |
parent | 18f5e269ce88eb569c0ff6ae8da0990a8b255570 (diff) | |
download | volse-hubzilla-8d0377466657a02c2e0bbeacd2af0a181ceda898.tar.gz volse-hubzilla-8d0377466657a02c2e0bbeacd2af0a181ceda898.tar.bz2 volse-hubzilla-8d0377466657a02c2e0bbeacd2af0a181ceda898.zip |
make redirections restriction in z_fetch_url() work
Diffstat (limited to 'include/network.php')
-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); } } |