1
0
mirror of https://github.com/moparisthebest/curl synced 2025-02-28 17:31:46 -05:00

additional fix for the malformed URL fix of yday

This commit is contained in:
Daniel Stenberg 2005-05-19 07:21:18 +00:00
parent 6ff092f140
commit eff36caea8

View File

@ -2466,6 +2466,10 @@ static CURLcode CreateConnection(struct SessionHandle *data,
*tmp=0; /* now cut off the hostname at the ? */
}
else if(!conn->path[0]) {
/* if there's no path set, use a single slash */
strcpy(conn->path, "/");
}
/* If the URL is malformatted (missing a '/' after hostname before path) we
* insert a slash here. The only letter except '/' we accept to start a path