aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOlaf Conradi <olaf@conradi.org>2012-12-26 02:17:43 +0100
committerOlaf Conradi <olaf@conradi.org>2012-12-26 02:17:43 +0100
commit4d684b37900ef87e952522f4163ee620fa55ba8e (patch)
tree116db730899c9945d6b2ef69b74370f4d87fe520 /include
parenta4b7fe3b64cb076ceec6d128753b33bb713bccf9 (diff)
downloadvolse-hubzilla-4d684b37900ef87e952522f4163ee620fa55ba8e.tar.gz
volse-hubzilla-4d684b37900ef87e952522f4163ee620fa55ba8e.tar.bz2
volse-hubzilla-4d684b37900ef87e952522f4163ee620fa55ba8e.zip
Fix whitespace
Diffstat (limited to 'include')
-rw-r--r--include/network.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/network.php b/include/network.php
index 333e0e83f..7050dc6ac 100644
--- a/include/network.php
+++ b/include/network.php
@@ -340,18 +340,18 @@ function z_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++;
+ $url_parsed = @parse_url($newurl);
+ if (isset($url_parsed)) {
+ $redirects++;
curl_close($ch);
- return z_post_url($newurl,$params,$headers,$redirects,$timeout);
- }
- }
+ return z_post_url($newurl,$params,$headers,$redirects,$timeout);
+ }
+ }
$rc = intval($http_code);
$ret['return_code'] = $rc;
$ret['success'] = (($rc >= 200 && $rc <= 299) ? true : false);