From 75774bd419c6050d2002a5afa9f1fe934aa5f173 Mon Sep 17 00:00:00 2001 From: David Siegfried <david.siegfried@uni-vechta.de> Date: Tue, 8 Feb 2022 11:54:26 +0000 Subject: [PATCH] Revert added wildcard support to HTTP_PROXY_IGNORE, fixes #582 (Stud.IP-5.2) --- lib/functions.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/functions.php b/lib/functions.php index 85bfd5e778b..96dd9551731 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -1816,12 +1816,8 @@ function get_default_http_stream_context($url = '') } $host = $purl['host']; $whitelist = array_filter(array_map('trim', explode(',', Config::get()->HTTP_PROXY_IGNORE))); - - foreach ($whitelist as $whitehost) { - if (fnmatch($whitehost, $host)) { - $proxy = ''; - break; - } + if (in_array($host, $whitelist)) { + $proxy = ''; } } if ($proxy) { -- GitLab