From 5760f2a307c1992cfada5f81284d08558f811591 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 11 Apr 2003 16:08:41 +0000 Subject: support ? as separator instead of / even if not protocol was given --- lib/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/url.c b/lib/url.c index 5cb8fe4df..1daa658be 100644 --- a/lib/url.c +++ b/lib/url.c @@ -1935,7 +1935,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, * The URL was badly formatted, let's try the browser-style _without_ * protocol specified like 'http://'. */ - if((1 > sscanf(data->change.url, "%512[^\n/]%[^\n]", + if((1 > sscanf(data->change.url, "%512[^\n/?]%[^\n]", conn->gname, conn->path)) ) { /* * We couldn't even get this format. -- cgit v1.2.3