gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 32/125: URL: tolerate backslash after drive letter


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 32/125: URL: tolerate backslash after drive letter for FILE:
Date: Sun, 21 Jan 2018 23:41:27 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit b261c44e8c47508ec615b07ad0a27905c8fa15e6
Author: Jan-E <address@hidden>
AuthorDate: Tue Dec 5 10:10:59 2017 +0100

    URL: tolerate backslash after drive letter for FILE:
    
    ... as in "file://c:\some\path\curl.out"
    
    Reviewed-by: Matthew Kerwin
    Closes #2154
---
 lib/url.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/url.c b/lib/url.c
index be2105e3b..a09972a7c 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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 */

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]