diff options
author | Jan-E <github@ehrhardt.nl> | 2017-12-05 10:10:59 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-12-06 00:53:20 +0100 |
commit | b261c44e8c47508ec615b07ad0a27905c8fa15e6 (patch) | |
tree | 6029de4dc00fc9b2e0fcd3eecc66131c44e2c271 | |
parent | 24dcd746675b753356c07d4e315959857ab1df00 (diff) |
URL: tolerate backslash after drive letter for FILE:
... as in "file://c:\some\path\curl.out"
Reviewed-by: Matthew Kerwin
Closes #2154
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2033,7 +2033,7 @@ static CURLcode parseurlandfillconn(struct Curl_easy *data, ((('a' <= (str)[0] && (str)[0] <= 'z') || \ ('A' <= (str)[0] && (str)[0] <= 'Z')) && \ ((str)[1] == ':' || (str)[1] == '|') && \ - ((str)[2] == '/' || (str)[2] == 0)) + ((str)[2] == '/' || (str)[2] == '\\' || (str)[2] == 0)) /* Don't mistake a drive letter for a scheme if the default protocol is file. curld --proto-default file c:/foo/bar.txt */ |