/[Apache-SVN]
ViewVC logotype

Revision 1875230


Jump to revision: Previous Next
Author: jamessan
Date: Mon Mar 16 04:11:36 2020 UTC (4 years, 9 months ago)
Changed paths: 1
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


Changed paths

Path Details
Directorysubversion/trunk/subversion/libsvn_subr/cmdline.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26