mirror of
https://github.com/curl/curl.git
synced 2026-06-03 17:04:15 +03:00
support ? as separator instead of / even if not protocol was given
This commit is contained in:
parent
ee46efb5a5
commit
5760f2a307
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue