]> code.citadel.org Git - citadel.git/blobdiff - webcit/openid.c
Performed a bunch of markup fixes suggested by validator.w3.org
[citadel.git] / webcit / openid.c
index c5842112cee0640213ede07089abd23d938cf741..68d81bdd27a13a6e4fc9581f52a6238b2ca95dcc 100644 (file)
@@ -1,6 +1,3 @@
-/*
- * $Id$
- */
 
 #include "webcit.h"
 #include "webserver.h"
@@ -16,8 +13,6 @@ void display_openids(void)
 
        output_headers(1, 1, 1, 0, 0, 0);
 
-       wc_printf("<div class=\"fix_scrollbar_bug\">");
-
        do_template("beginbox_1", NULL);
        StrBufAppendBufPlain(WCC->WBuf, _("Manage Account/OpenID Associations"), -1, 0);
        do_template("beginbox_2", NULL);
@@ -42,7 +37,7 @@ void display_openids(void)
                        wc_printf("</td></tr>\n");
                }
        
-               wc_printf("</table><br />\n");
+               wc_printf("</table><br>\n");
        
                wc_printf("<form method=\"POST\" action=\"openid_attach\">\n");
                wc_printf("<input type=\"hidden\" name=\"nonce\" value=\"%d\">\n", WCC->nonce);
@@ -57,7 +52,6 @@ void display_openids(void)
        }
 
        do_template("endbox", NULL);
-       wc_printf("</div>");
        wDumpContent(2);
 }
 
@@ -69,15 +63,14 @@ void openid_attach(void) {
        char buf[4096];
 
        if (havebstr("attach_button")) {
-               wcsession *WCC = WC;
 
                lprintf(CTDL_DEBUG, "Attempting to attach %s\n", bstr("openid_url"));
 
                snprintf(buf, sizeof buf,
-                        "OIDS %s|%s://%s/finalize_openid_login|%s://%s",
-                        bstr("openid_url"),
-                        (is_https ? "https" : "http"), ChrPtr(WCC->Hdr->HR.http_host),
-                        (is_https ? "https" : "http"), ChrPtr(WCC->Hdr->HR.http_host)
+                       "OIDS %s|%s/finalize_openid_login|%s",
+                       bstr("openid_url"),
+                       ChrPtr(site_prefix),
+                       ChrPtr(site_prefix)
                );
 
                serv_puts(buf);