aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorOlaf Conradi <olaf@conradi.org>2012-12-26 03:25:13 +0100
committerOlaf Conradi <olaf@conradi.org>2012-12-26 03:25:13 +0100
commite15683175e0582757746534044e5893ab70f4724 (patch)
treede4f25a90f61de4abefbe53fcff306e7c912c1dc /include/network.php
parent4d684b37900ef87e952522f4163ee620fa55ba8e (diff)
downloadvolse-hubzilla-e15683175e0582757746534044e5893ab70f4724.tar.gz
volse-hubzilla-e15683175e0582757746534044e5893ab70f4724.tar.bz2
volse-hubzilla-e15683175e0582757746534044e5893ab70f4724.zip
More whitespace fixes
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/network.php b/include/network.php
index 7050dc6ac..0f1420d61 100644
--- a/include/network.php
+++ b/include/network.php
@@ -162,17 +162,17 @@ function post_url($url,$params, $headers = null, &$redirects = 0, $timeout = 0)
}
if($http_code == 301 || $http_code == 302 || $http_code == 303) {
- $matches = array();
- preg_match('/(Location:|URI:)(.*?)\n/', $header, $matches);
- $newurl = trim(array_pop($matches));
+ $matches = array();
+ preg_match('/(Location:|URI:)(.*?)\n/', $header, $matches);
+ $newurl = trim(array_pop($matches));
if(strpos($newurl,'/') === 0)
$newurl = $url . $newurl;
- $url_parsed = @parse_url($newurl);
- if (isset($url_parsed)) {
- $redirects++;
- return fetch_url($newurl,false,$redirects,$timeout);
- }
- }
+ $url_parsed = @parse_url($newurl);
+ if (isset($url_parsed)) {
+ $redirects++;
+ return fetch_url($newurl,false,$redirects,$timeout);
+ }
+ }
$a->set_curl_code($http_code);
$body = substr($s,strlen($header));