From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH v2] general-functions.pl: Fix for bug#12937 Date: Mon, 19 Dec 2022 10:12:36 +0100 Message-ID: <20221219091236.3427-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1905082471379154507==" List-Id: --===============1905082471379154507== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable - The check for validwildcarddomainname did not allow wildcards of the form *.ipfire.org* which is the example given on the proxy.cgi page for exclude= d url's for the wpad file. - A forum user sufferred from this problem and the bug was raised for it. https://community.ipfire.org/t/proxy-cgi-error-message-when-use-wildcard-i= n-wpad-excluded-url-s/8597 forum user has tested the patch change and confirmed it solves the problem. Fixes: Bug#12937 Suggested-by: Bernhard Bitsch Signed-off-by: Adolf Belka --- config/cfgroot/general-functions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cfgroot/general-functions.pl b/config/cfgroot/general-fun= ctions.pl index 98bedb4b9..d871025eb 100644 --- a/config/cfgroot/general-functions.pl +++ b/config/cfgroot/general-functions.pl @@ -760,7 +760,7 @@ sub validwildcarddomainname($) { my $domainname =3D shift; =20 # Ignore any leading dots - if ($domainname =3D~ m/^\*\.(.*)/) { + if ($domainname =3D~ m/^\*\.([^\*]*)\*?/) { $domainname =3D $1; } =20 --=20 2.39.0 --===============1905082471379154507==--