Skip to content

Commit

Permalink
URL: tolerate backslash after drive letter for FILE:
Browse files Browse the repository at this point in the history
... as in "file://c:\some\path\curl.out"

Reviewed-by: Matthew Kerwin
Closes #2154
  • Loading branch information
Jan-E authored and bagder committed Dec 5, 2017
1 parent 24dcd74 commit b261c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/url.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit b261c44

Please sign in to comment.