diff --git a/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/RESTServer.pm b/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/RESTServer.pm index 2aeb66c3d..0f483d932 100644 --- a/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/RESTServer.pm +++ b/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/RESTServer.pm @@ -211,7 +211,7 @@ sub virtualHosts { } return $self->sendJSONresponse( $req, $resp ); } - elsif ( $query =~ $virtualHostKeys ) { + elsif ( $query =~ qr/^$virtualHostKeys$/o ) { $self->logger->debug("Query for $vh/$query key"); # TODO: verify how this is done actually