Skip to content

Commit

Permalink
allow metacharacters * and ? in sql file path
Browse files Browse the repository at this point in the history
  • Loading branch information
zivis authored and BuJo committed Aug 25, 2023
1 parent ace430f commit 95ee0e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/db.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 95ee0e0

Please sign in to comment.