From 8656201b5f6f50812206bfe2a6e515387aca9b9d Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 20 May 2009 15:33:02 +0000 Subject: [PATCH] * Handle bad cookies without crashing --- webcit/auth.c | 12 ++++++------ webcit/static/webcit.css | 3 +++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/webcit/auth.c b/webcit/auth.c index 2f3d61bd8..61d7ecc00 100644 --- a/webcit/auth.c +++ b/webcit/auth.c @@ -996,13 +996,13 @@ void Header_HandleCookie(StrBuf *Line, ParsedHttpHdrs *hdr) if (hdr->DontNeedAuth) return; */ - hdr->RawCookie = Line; - - pch = strstr(ChrPtr(hdr->RawCookie), "webcit="); - - if (pch != NULL) - StrBufCutLeft(hdr->RawCookie, (pch - ChrPtr(hdr->RawCookie)) + 7); + pch = strstr(ChrPtr(Line), "webcit="); + if (pch == NULL) { + return; + } + hdr->RawCookie = Line; + StrBufCutLeft(hdr->RawCookie, (pch - ChrPtr(hdr->RawCookie)) + 7); StrBufDecodeHex(hdr->RawCookie); if (hdr->c_username == NULL) diff --git a/webcit/static/webcit.css b/webcit/static/webcit.css index d75ab0e1c..13648869c 100644 --- a/webcit/static/webcit.css +++ b/webcit/static/webcit.css @@ -1127,6 +1127,9 @@ dt { clear: both; } width: 100%; table-layout: fixed; } +#summary_view td { + font-size: 8pt; +} colgroup.entity { text-align: center; } -- 2.30.2