From d12b929c96f687ce9969b1162a74ada1ec78a6d0 Mon Sep 17 00:00:00 2001 From: Matthew Exon Date: Tue, 10 Feb 2015 03:14:08 +0000 Subject: [PATCH] Accept lowercase location header --- include/network.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/network.php b/include/network.php index 190dce326e..251de07c42 100644 --- a/include/network.php +++ b/include/network.php @@ -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) -- 2.39.5