]> code.citadel.org Git - citadel.git/blobdiff - webcit/openid.c
* shuffled members of wcsession -> do a make clean or everything will burst in your...
[citadel.git] / webcit / openid.c
index dc6d09838f20ae8ddc3383e2034e96dc1548e044..a4af9d257a1bb4dda1f7618017d3a14b19a8ad01 100644 (file)
@@ -67,13 +67,15 @@ 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"), WC->http_host,
-                       (is_https ? "https" : "http"), WC->http_host
+                        "OIDS %s|%s://%s/finalize_openid_login|%s://%s",
+                        bstr("openid_url"),
+                        (is_https ? "https" : "http"), ChrPtr(WCC->http_host),
+                        (is_https ? "https" : "http"), ChrPtr(WCC->http_host)
                );
 
                serv_puts(buf);