aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-09-12 21:11:47 +0200
committerMario <mario@mariovavti.com>2018-09-12 21:11:47 +0200
commit78dc679a72a5a2d94a59642dd6b0087b0fc14837 (patch)
tree2f58b8fd100bd52976db96be48052a4538011508 /include
parent57e3ee47ee02002239bab1cde5b68f741e6f0c08 (diff)
parent66bf55710ea4fc13c3b2c35cce2c5e095b695388 (diff)
downloadvolse-hubzilla-78dc679a72a5a2d94a59642dd6b0087b0fc14837.tar.gz
volse-hubzilla-78dc679a72a5a2d94a59642dd6b0087b0fc14837.tar.bz2
volse-hubzilla-78dc679a72a5a2d94a59642dd6b0087b0fc14837.zip
Merge branch 'patch-1' into 'dev'
z_fetch_url with case insensitive headers See merge request hubzilla/core!1271
Diffstat (limited to 'include')
-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;