* Added missing HTTP headers for /listsub
authorArt Cancro <ajc@citadel.org>
Mon, 14 Nov 2005 03:46:33 +0000 (03:46 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 14 Nov 2005 03:46:33 +0000 (03:46 +0000)
webcit/ChangeLog
webcit/listsub.c
webcit/webcit.c

index 145a371915656c767446f9bead3e00a9bced09d9..31bf3aa3c9ff53bfdb8b0ab3d37826b708787697 100644 (file)
@@ -1,5 +1,7 @@
 $Id$
 
+* Added missing HTTP headers for /listsub
+
 * Discovered the style -moz-user-select:none and applied it to the mailbox
   summary table, to prevent text select from ruining the appearance of our
   beautiful drag and drop function.
index 66d03aac8faa70da74007dbfc0fb5eb6300369a2..28300597317bd9501d49ee207622154f8aaddc2d 100644 (file)
@@ -30,7 +30,14 @@ void do_listsub(void)
        strcpy(WC->wc_password, "");
        strcpy(WC->wc_roomname, "");
 
-       wprintf("<HTML><HEAD><TITLE>");
+       output_headers(1, 0, 0, 1, 1, 0);
+       begin_burst();
+
+       wprintf("<HTML><HEAD>\n"
+               "<meta name=\"MSSmartTagsPreventParsing\" content=\"TRUE\" />\n"
+               "<link href=\"static/webcit.css\" rel=\"stylesheet\" type=\"text/css\">\n"
+               "<TITLE>\n"
+       );
        wprintf(_("List subscription"));
        wprintf("</TITLE></HEAD><BODY>\n");
 
@@ -214,11 +221,7 @@ FORM:              wprintf("<FORM METHOD=\"POST\" action=\"listsub\">\n"
 
        }
 
-       /*
-        * Since this isn't part of a normal Citadel session, we bail right
-        * out without maintaining any state.
-        */
-       /* wDumpContent(2); */
        wprintf("</BODY></HTML>\n");
+       wDumpContent(0);
        end_webcit_session();
 }
index bd875ecd3545b42f1ea9d605bc774662be62da41..bdda202f69d3c7734ca518f4d7eae602e5883298 100644 (file)
@@ -383,7 +383,6 @@ void output_headers(        int do_httpheaders,     /* 1 = output HTTP headers
        }
 
        if (do_htmlhead) {
-               /* wprintf("\n"); */
                begin_burst();
                do_template("head");
        }