]> granicus.if.org Git - curl/commit
tool_operate: Don't sanitize --output path (Windows)
authorJay Satiro <raysatiro@yahoo.com>
Mon, 1 Feb 2016 09:11:46 +0000 (04:11 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 1 Feb 2016 09:11:46 +0000 (04:11 -0500)
commit2b6dadc52d38797ad52a7a117724f85be82a3889
tree368a1eb21b971c724baae6c4be8f764acde07dc2
parent96596334c8d511565b751eb8913e1ee9817f2926
tool_operate: Don't sanitize --output path (Windows)

Due to path separators being incorrectly sanitized in --output
pathnames, eg -o c:\foo => c__foo

This is a partial revert of 3017d8a until I write a proper fix. The
remote-name will continue to be sanitized, but if the user specified an
--output with string replacement (#1, #2, etc) that data is unsanitized
until I finish a fix.

Bug: https://github.com/bagder/curl/issues/624
Reported-by: Octavio Schroeder
src/tool_operate.c