projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b9f6011
)
Remove false cookies from the browser to avoid endless loops
author
Wilfried Goesgens
<dothebart@citadel.org>
Sat, 5 Oct 2013 09:52:05 +0000
(11:52 +0200)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Mon, 7 Oct 2013 19:28:19 +0000
(21:28 +0200)
webcit/webcit.c
patch
|
blob
|
history
diff --git
a/webcit/webcit.c
b/webcit/webcit.c
index 5b9078bbe26897c5b1b40e0266cb9e08da580edb..851829af909102188879f11abb7e23bd2a602478 100644
(file)
--- a/
webcit/webcit.c
+++ b/
webcit/webcit.c
@@
-314,6
+314,11
@@
void authorization_required(void)
PACKAGE_STRING, ChrPtr(WC->serv_info->serv_software)
);
hprintf("WWW-Authenticate: Basic realm=\"%s\"\r\n", ChrPtr(WC->serv_info->serv_humannode));
PACKAGE_STRING, ChrPtr(WC->serv_info->serv_software)
);
hprintf("WWW-Authenticate: Basic realm=\"%s\"\r\n", ChrPtr(WC->serv_info->serv_humannode));
+
+ /* if this is a false cookie authentication, remove it to avoid endless loops. */
+ if (StrLength(WCC->Hdr->HR.RawCookie) > 0)
+ stuff_to_cookie(1);
+
hprintf("Content-Type: text/html\r\n");
begin_burst();
wc_printf("<h1>");
hprintf("Content-Type: text/html\r\n");
begin_burst();
wc_printf("<h1>");