diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-03-28 08:03:25 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-03-28 08:03:25 +0000 |
commit | bcc62cc9e34ce7536a05f0bdccda7ada628ba220 (patch) | |
tree | 9042312105daf17b2570c25a8bc8dd0faae8cbce /lib | |
parent | 97b466d4095078e106dd1222735767b6ec944e81 (diff) |
#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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/transfer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index 65c899934..6fa8f6334 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -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; |