Remove explicit wrapping of Shellwords.escape in double quotes
According to http://www.ruby-doc.org/stdlib-1.9.3/libdoc/shellwords/rdoc/Shellwords.html#method-c-shellescape "Note that a resulted string should be used unquoted and is not intended for use in double quotes nor in single quotes."
This commit is contained in:
committed by
Kevin McAllister
parent
6c04dab649
commit
7b4eabf0c5
@@ -91,7 +91,7 @@ private ######################################################################
|
||||
end
|
||||
|
||||
def shell_quote(value)
|
||||
'"' + Shellwords.escape(value) + '"'
|
||||
Shellwords.escape(value)
|
||||
end
|
||||
|
||||
# deprecated
|
||||
|
||||
Reference in New Issue
Block a user