occurred when asking libcurl to follow HTTP redirects and the original URL had
more than one question mark (?). Added test case 276 to verify.
This commit is contained in:
Daniel Stenberg
2006-03-28 08:03:25 +00:00
parent 97b466d409
commit bcc62cc9e3
5 changed files with 80 additions and 2 deletions

View File

@@ -1827,7 +1827,7 @@ CURLcode Curl_follow(struct SessionHandle *data,
/* First we need to find out if there's a ?-letter in the URL,
and cut it and the right-side of that off */
pathsep = strrchr(protsep, '?');
pathsep = strchr(protsep, '?');
if(pathsep)
*pathsep=0;