X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fwebcit.c;h=869793a2c2ace1b4c524d9d388b99c2e3c2dbaef;hb=19efac53a8a87446e66e6e0213d7f9b46af60a48;hp=33fcc7046b56c06d387b7dbfa68df90fac31535f;hpb=2de0bf4c61fbe29da0952c04192739f4d347a31d;p=citadel.git diff --git a/webcit/webcit.c b/webcit/webcit.c index 33fcc7046..869793a2c 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -241,6 +241,7 @@ void http_redirect(const char *whichpage) { hprintf("Location: %s\r\n", whichpage); hprintf("URI: %s\r\n", whichpage); hprintf("Content-type: text/html; charset=utf-8\r\n"); + begin_burst(); wprintf(""); wprintf("Go here.", whichpage); wprintf("\n"); @@ -379,6 +380,7 @@ void authorization_required(void) ); hprintf("WWW-Authenticate: Basic realm=\"%s\"\r\n", ChrPtr(WC->serv_info->serv_humannode)); hprintf("Content-Type: text/html\r\n"); + begin_burst(); wprintf("

"); wprintf(_("Authorization Required")); wprintf("

\r\n"); @@ -392,7 +394,7 @@ void authorization_required(void) wprintf(_("The resource you requested requires a valid username and password. " "You could not be logged in: %s\n"), message); wDumpContent(0); - WCC->killthis = 1; + end_webcit_session(); } /* @@ -601,6 +603,7 @@ void session_loop(void) lprintf(9, "Ignoring request with mismatched nonce.\n"); hprintf("HTTP/1.1 404 Security check failed\r\n"); hprintf("Content-Type: text/plain\r\n\r\n"); + begin_burst(); wprintf("Security check failed.\r\n"); end_burst(); goto SKIP_ALL_THIS_CRAP;