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 14:22:10 -04:00
committed by GitHub
parent 59cb53cfbc
commit ae87df7a5d
2 changed files with 2 additions and 1 deletions
+1 -1
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;
}
+1
View File
@@ -249,3 +249,4 @@ Zhou Shen
Zixi Li
أحمد المحمودي
404allen404
Tobias Jensen