* BIG rewrite of header handling and slimming of context_loop and session_loop; shuff...
[citadel.git] / webcit / listsub.c
index 8a2f2f5acee7c29cd9284126f8c470fef7d3854c..0f4af8ce9042dd81d4dd012534001ad32ca5f6ab 100644 (file)
@@ -61,7 +61,7 @@ void do_listsub(void)
                        email,
                        subtype,
                        (is_https ? "https" : "http"),
-                           ChrPtr(WC->http_host)
+                           ChrPtr(WC->Hdr->http_host)
                );
                serv_getln(buf, sizeof buf);
                if (buf[0] == '2') {
@@ -102,7 +102,7 @@ void do_listsub(void)
                            room,
                            email,
                            (is_https ? "https" : "http"),
-                           ChrPtr(WC->http_host)
+                           ChrPtr(WC->Hdr->http_host)
                );
                serv_getln(buf, sizeof buf);
                if (buf[0] == '2') {
@@ -224,3 +224,14 @@ FORM:              wprintf("<form method=\"POST\" action=\"listsub\">\n");
        wDumpContent(0);
        end_webcit_session();
 }
+
+
+
+void 
+InitModule_LISTSUB
+(void)
+{
+       WebcitAddUrlHandler(HKEY("listsub"), do_listsub, ANONYMOUS|COOKIEUNNEEDED|FORCE_SESSIONCLOSE);
+
+
+}