[Fedora-directory-commits] dsgw htmlout.c,1.6,1.7

Richard Allen Megginson (rmeggins) fedora-directory-commits at redhat.com
Wed Jun 11 21:12:33 UTC 2008


Author: rmeggins

Update of /cvs/dirsec/dsgw
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20681/dsgw

Modified Files:
	htmlout.c 
Log Message:
Resolves: bug 450134
Bug Description: No text in advance search box does not produce error messages
Reviewed by: nhosoi (Thanks!)
Fix Description: The old DSGW used to support GET and POST at the same time.  This does not work anymore since moving to use adminutil.  The solution is to use POST style form arguments with post actions - so lang?file=alert.html becomes <input name=file value=alert.html> inside of a FORM POST.
Platforms tested: RHEL5
Flag Day: no
Doc impact: no
QA impact: should be covered by regular nightly and manual testing
New Tests integrated into TET: none



Index: htmlout.c
===================================================================
RCS file: /cvs/dirsec/dsgw/htmlout.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- htmlout.c	20 Mar 2008 02:18:39 -0000	1.6
+++ htmlout.c	11 Jun 2008 21:12:31 -0000	1.7
@@ -419,7 +419,8 @@
 dsgw_emit_alertForm ()
 {
     dsgw_form_begin ("alertForm", "action=\"%s\" target=alertWindow",
-		     DSGW_URLPREFIX_MAIN_HTTP "alert.html");
+		     DSGW_CGINAME_LANG);
+    dsgw_emits ("<INPUT TYPE=hidden NAME=file VALUE=\"alert.html\">");
     dsgw_emitf ("<INPUT TYPE=hidden NAME=TITLE VALUE=\"%s\">", XP_GetClientStr(DBT_alertTitle_));
     dsgw_emits ("<INPUT TYPE=hidden NAME=MSG VALUE=\"\">"
 		"</FORM>\n");
@@ -429,7 +430,8 @@
 dsgw_emit_confirmForm ()
 {
     dsgw_form_begin ("confirmForm", "action=\"%s\" target=confirmWindow",
-		     DSGW_URLPREFIX_MAIN_HTTP "confirm.html");
+		     DSGW_CGINAME_LANG);
+    dsgw_emits ("<INPUT TYPE=hidden NAME=file VALUE=\"confirm.html\">");
     dsgw_emitf ("<INPUT TYPE=hidden NAME=TITLE VALUE=\"%s\">", XP_GetClientStr(DBT_confirmTitle_));
     dsgw_emits ("<INPUT TYPE=hidden NAME=MSG VALUE=\"\">"
 		"<INPUT TYPE=hidden NAME=YES VALUE=\"\">"




More information about the Fedora-directory-commits mailing list