[m-rev.] diff: fixed bug in cgi__parse_form_entries

Michael Day mikeday at bigpond.net.au
Wed Aug 8 23:28:58 AEST 2001


Estimated hours taken: 0.5
Branches: main

Fixed a bug that was causing cgi__parse_form_entries to return no
parameters when processing a posted form containing a single parameter.

Michael


Index: cgi.m
===================================================================
RCS file: /home/mercury1/repository/mercury/extras/cgi/cgi.m,v
retrieving revision 1.3
diff -u -r1.3 cgi.m
--- cgi.m	1998/10/13 04:32:32	1.3
+++ cgi.m	2001/08/08 13:25:16
@@ -171,7 +171,7 @@
 		cgi__parse_form_entries(Rest),
 		{ FormEntries = [Name - Value | Rest] }
 	;
-		{ FormEntries = [] }
+		{ FormEntries = [Name - Value] }
 	).

 :- pred cgi__parse_form_entry(string, string, list(char), list(char)).

--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list