aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRedMatrix <info@friendica.com>2015-02-24 06:31:14 +1100
committerRedMatrix <info@friendica.com>2015-02-24 06:31:14 +1100
commit426f01d849b02768802b83e49865807465390a7e (patch)
treeedabcad5d90c6f46449fb493bcf2e34adc2579c2
parent18f5e269ce88eb569c0ff6ae8da0990a8b255570 (diff)
parent8d0377466657a02c2e0bbeacd2af0a181ceda898 (diff)
downloadvolse-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.php2
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);
}
}