From bcc62cc9e34ce7536a05f0bdccda7ada628ba220 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 28 Mar 2006 08:03:25 +0000 Subject: #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. --- lib/transfer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; -- cgit v1.2.3