mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
general-functions.pl: Fix for bug#12937
- The check for validwildcarddomainname did not allow wildcards of the form *.ipfire.org* which is the example given on the proxy.cgi page for excluded 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-in-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 <bbitsch@ipfire.org> Signed-off-by: Adolf Belka <adolf.belka@ipfire.org> Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
d98dfe5a19
commit
859f8e3d90
@@ -760,7 +760,7 @@ sub validwildcarddomainname($) {
|
||||
my $domainname = shift;
|
||||
|
||||
# Ignore any leading dots
|
||||
if ($domainname =~ m/^\*\.(.*)/) {
|
||||
if ($domainname =~ m/^\*\.([^\*]*)\*?/) {
|
||||
$domainname = $1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user