From: Daniel Stenberg Date: Thu, 19 May 2005 07:21:18 +0000 (+0000) Subject: additional fix for the malformed URL fix of yday X-Git-Tag: curl-7_14_1~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eff36caea8bfcdc05be67a240d11a2387e8a0648;p=thirdparty%2Fcurl.git additional fix for the malformed URL fix of yday --- diff --git a/lib/url.c b/lib/url.c index 33afb0108b..9b00060078 100644 --- a/lib/url.c +++ b/lib/url.c @@ -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