mirror of
https://github.com/curl/curl.git
synced 2026-07-26 10:07:15 +03:00
#1451929 (http://curl.haxx.se/bug/view.cgi?id=1451929) detailed a bug that
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:
parent
97b466d409
commit
bcc62cc9e3
5 changed files with 80 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue