Fix Windows paths in perl (#5858) (#5860)

Add colon to no escape list, for windows paths
This commit is contained in:
Tobias Jensen 2025-03-15 19:22:10 +01:00 committed by GitHub
parent 59cb53cfbc
commit ae87df7a5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -256,7 +256,7 @@ sub sh_escape {
# This is similar to quotemeta() but less aggressive.
# There's no need to escape hyphens, periods, or forward slashes
# for the shell as these have no special meaning to the shell.
$arg =~ s/([^0-9a-zA-Z_\-\+\=\.\/])/\\$1/g;
$arg =~ s/([^0-9a-zA-Z_\-\+\=\.\/:])/\\$1/g;
return $arg;
}

View File

@ -249,3 +249,4 @@ Zhou Shen
Zixi Li
أحمد المحمودي
404allen404
Tobias Jensen