Fix CDA wildcard regexp (#2534)

This commit is contained in:
Maxime Besson 2021-06-24 19:02:17 +02:00
parent 3d1cc3f499
commit 4a2a786598

View File

@ -383,8 +383,8 @@ sub reloadConf {
# Handle wildcards
if ( $vhost =~ /[\%\*]/ ) {
$expr =~ s/\\\*/\.*/;
$expr =~ s/\\\%/[\^\.]\*/;
$expr =~ s/\\\*/[A-Za-z0-9\.]\*/;
$expr =~ s/\\\%/[A-Za-z0-9]\*/;
}
$re->add($expr);
$self->logger->debug("Vhost $vhost added in trusted domains");