From 95ee0e0694b46388aeb9d4b6330b7069c5d0e716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20R=C3=BCssel?= Date: Fri, 17 Mar 2023 14:29:40 +0100 Subject: [PATCH] allow metacharacters * and ? in sql file path --- manifests/db.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/db.pp b/manifests/db.pp index 98f051c05..15fd1e83e 100644 --- a/manifests/db.pp +++ b/manifests/db.pp @@ -78,7 +78,7 @@ # Ensure that the sql files passed are valid file paths. if $sql { $sql.each | $sqlfile | { - if $sqlfile !~ /^\/(?:.[.A-Za-z0-9_-]+\/?+)+(?:\.[.A-Za-z0-9]+)+$/ { + if $sqlfile !~ /^\/(?:.[.A-Za-z0-9_\-\?*]+\/?+)+(?:\.[.A-Za-z0-9]+)+$/ { $message = "The file '${sqlfile}' is invalid. A valid file path is expected." fail($message) }