Log Message: |
Followup to r1874093, add Windows-specific argument escaping
Rather than directly using apr_pescape_shell(), use apr_escape_shell() to give
an indication whether escaping is needed. If APR reports no escaping is
needed, simply surround the argument in double-quotes to handle any embedded
whitespace.
When escaping is needed, on Unix we continue to use APR's escaping +
post-processing for whitespace. On Windows, perform the escaping ourselves per
these rules:
1. Surround the string with double-quotes
2. Escape any double-quotes or backslashes preceding a double-quote
3. Escape any metacharacters, including double-quotes, with ^
* subversion/libsvn_subr/cmdline.c
(escape_path): Refactored as above
|