Commit bd4b24e2 authored by Robert Ricci's avatar Robert Ricci
Browse files

Better command-line arg quoting - thanks Leigh!

parent aa720163
......@@ -192,9 +192,9 @@ function MAKENS($template,$templatefields,$templatevalues) {
#
# Make sure they don't try to break out of our quotes.
#
$value = quotemeta($value);
$value = escapeshellarg($value);
$nsgen_args .= "-v $name='$value' ";
$nsgen_args .= "-v $name=$value ";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment