Skip to content
Snippets Groups Projects
Commit 75774bd4 authored by David Siegfried's avatar David Siegfried
Browse files

Revert added wildcard support to HTTP_PROXY_IGNORE, fixes #582 (Stud.IP-5.2)

parent c1cea9c8
No related branches found
No related tags found
No related merge requests found
...@@ -1816,12 +1816,8 @@ function get_default_http_stream_context($url = '') ...@@ -1816,12 +1816,8 @@ function get_default_http_stream_context($url = '')
} }
$host = $purl['host']; $host = $purl['host'];
$whitelist = array_filter(array_map('trim', explode(',', Config::get()->HTTP_PROXY_IGNORE))); $whitelist = array_filter(array_map('trim', explode(',', Config::get()->HTTP_PROXY_IGNORE)));
if (in_array($host, $whitelist)) {
foreach ($whitelist as $whitehost) { $proxy = '';
if (fnmatch($whitehost, $host)) {
$proxy = '';
break;
}
} }
} }
if ($proxy) { if ($proxy) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment