[elinks-dev] CGI scripts using GET don't work

Witold Filipczyk witekfl at poczta.onet.pl
Fri Jun 15 06:49:20 MDT 2007


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


More information about the elinks-dev mailing list