* Handle bad cookies without crashing
authorArt Cancro <ajc@citadel.org>
Wed, 20 May 2009 15:33:02 +0000 (15:33 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 20 May 2009 15:33:02 +0000 (15:33 +0000)
webcit/auth.c
webcit/static/webcit.css

index 2f3d61bd82c30c99d9f49ccb446838bcb0d572be..61d7ecc00db16599fab3e0a04c9a93a8d8549d74 100644 (file)
@@ -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)
index d75ab0e1c9bb768c0361ede0be8b569b050e49a2..13648869cd4bb1909f94e988b314ceba1a098623 100644 (file)
@@ -1127,6 +1127,9 @@ dt { clear: both; }
     width: 100%;
     table-layout: fixed;
 }
+#summary_view td {
+       font-size: 8pt;
+}
 colgroup.entity {
        text-align: center;
 }