CGI scripts using GET don't work

Witold Filipczyk <[email protected]>
Newsgroups gmane.comp.web.links
Message-ID <20070615124920.GA10529@pldmachine>
Hi!
CGI scripts using the GET method don't work in 0.11.3
and 0.12.GIT. QUERY_STRING is empty. It's a big bug.
Here is the patch for 0.11.3:
diff --git a/src/protocol/uri.c b/src/protocol/uri.c
index df22646..e9c3b39 100644
--- a/src/protocol/uri.c
+++ b/src/protocol/uri.c
@@ -149,7 +149,7 @@ static int
 check_uri_file(const unsigned char *name)
 {
 	/* Check POST_CHAR etc ... */
-	static const unsigned char chars[] = POST_CHAR_S "#?";
+	static const unsigned char chars[] = POST_CHAR_S "#";
 
 	return strcspn(name, chars);
 }

-- 
Witek
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.