Bad regexp (fixes: #1373)

This commit is contained in:
Xavier Guimard 2018-03-12 17:43:18 +01:00
parent e0d83f5268
commit da889f9e26

View File

@ -211,7 +211,7 @@ sub virtualHosts {
}
return $self->sendJSONresponse( $req, $resp );
}
elsif ( $query =~ /^vhost(?:(?:Aliase|Http)s|Maintenance|Port|Type)$/ ) {
elsif ( $query =~ $virtualHostKeys ) {
$self->logger->debug("Query for $vh/$query key");
# TODO: verify how this is done actually