aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-09-10 15:13:28 +0200
committerMax Kostikov <max@kostikov.co>2018-09-10 15:13:28 +0200
commit66bf55710ea4fc13c3b2c35cce2c5e095b695388 (patch)
tree005cdc244b8af2c9c68af606a507b5587181e6fa
parentc6abe87ec2e08fc38ff9c505ac2000d52d45c228 (diff)
downloadvolse-hubzilla-66bf55710ea4fc13c3b2c35cce2c5e095b695388.tar.gz
volse-hubzilla-66bf55710ea4fc13c3b2c35cce2c5e095b695388.tar.bz2
volse-hubzilla-66bf55710ea4fc13c3b2c35cce2c5e095b695388.zip
Update network.php
-rw-r--r--include/network.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/network.php b/include/network.php
index d4f4f27c6..5ae02deff 100644
--- a/include/network.php
+++ b/include/network.php
@@ -157,7 +157,7 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) {
if($http_code == 301 || $http_code == 302 || $http_code == 303 || $http_code == 307 || $http_code == 308) {
$matches = array();
- preg_match('/(Location:|URI:)(.*?)\n/', $header, $matches);
+ preg_match('/(Location:|URI:)(.*?)\n/i', $header, $matches);
$newurl = trim(array_pop($matches));
if(strpos($newurl,'/') === 0)
$newurl = $url . $newurl;