summary refs log tree commit diff stats
path: root/devel
diff options
context:
space:
mode:
authorMichał Zieliński <michal@zielinscy.org.pl>2013-12-02 18:34:32 +0100
committerMichał Zieliński <michal@zielinscy.org.pl>2013-12-07 22:56:02 +0100
commite7e8c7706240c4bef17533da63df988d228ba127 (patch)
tree9841b117a79e64f00f6e6165e77ee3a5ec0d65e2 /devel
parent5dcfa97fb959eda3cb8a41e2bd39e998c30052c8 (diff)
downloadNim-e7e8c7706240c4bef17533da63df988d228ba127.tar.gz
Make quoteIfContainsWhite quote argument, so it can be safely passed to shell.
On Windows put it in double quotes and escape double quotes using backslash.
On Posix put it in single quotes and escape single quotes using '"'"'.

This commit changes what quoteIfContainsWhite does, but before that change it
was used incorrectly all over standard library, which caused security issues.
Diffstat (limited to 'devel')
0 files changed, 0 insertions, 0 deletions