Skip to content
Snippets Groups Projects
Commit 5760f2a3 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

support ? as separator instead of / even if not protocol was given

parent ee46efb5
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment