]> git.mxchange.org Git - friendica.git/commitdiff
Accept lowercase location header
authorMatthew Exon <mat@exon.name>
Tue, 10 Feb 2015 03:14:08 +0000 (03:14 +0000)
committerMatthew Exon <mat@exon.name>
Tue, 10 Feb 2015 03:14:08 +0000 (03:14 +0000)
include/network.php

index 190dce326ea9fcfa232a5b6566bed3e29df2163e..251de07c42ab9d49f5f90e23c620b9a195391a02 100644 (file)
@@ -94,7 +94,7 @@ function fetch_url($url,$binary = false, &$redirects = 0, $timeout = 0, $accept_
                        $newurl = $new_location_info["scheme"]."://".$new_location_info["host"].$old_location_info["path"];
 
                $matches = array();
-               if (preg_match('/(Location:|URI:)(.*?)\n/', $header, $matches)) {
+               if (preg_match('/(Location:|URI:)(.*?)\n/i', $header, $matches)) {
                        $newurl = trim(array_pop($matches));
                }
                if(strpos($newurl,'/') === 0)