}
else {
Hdr->HR.DontNeedAuth = 1; /* Flat request? show him the login screen... */
- StrBuf *NewLine = NewStrBufPlain(HKEY("GET /readfwd?go="));
+ StrBuf *NewLine = NewStrBufPlain(HKEY("GET /do_template?template=login"));
StrBufUrlescAppend(NewLine, Buf, NULL);
StrBufAppendBufPlain(NewLine, HKEY(" HTTP/1.0"), 0);
syslog(LOG_DEBUG, "Replacing with: %s", ChrPtr(NewLine));
for (i = 0; i<nLocalesLoaded; ++i) {
if (!strcasecmp(lang, AvailLangLoaded[i])) {
WC->selected_language = i;
+ break;
}
}
#endif
hprintf("Location: %s\r\n", whichpage);
hprintf("URI: %s\r\n", whichpage);
hprintf("Content-type: text/html; charset=utf-8\r\n");
+ stuff_to_cookie(0);
begin_burst();
wc_printf("<html><body>");
wc_printf("Go <a href=\"%s\">here</A>.", whichpage);