From db13033bfc8404b563e6a655cd87f63ec307281d Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 26 Feb 2004 04:08:58 +0000 Subject: [PATCH] * Fixed a problem that made WebCit go to the "no cookies" screen instead of the logout banner. * Ford's latest stupid room has a name with more than 64 characters, and we still had a 64-byte room name in the march_list struct. ooooops... --- webcit/ChangeLog | 7 +++++++ webcit/context_loop.c | 6 +++--- webcit/static/head.html | 1 - webcit/static/mainframeset.html | 1 - webcit/webcit.h | 4 ++-- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index ea4689abd..e6ffc70e9 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,10 @@ $Log$ +Revision 505.7 2004/02/26 04:08:56 ajc +* Fixed a problem that made WebCit go to the "no cookies" screen instead + of the logout banner. +* Ford's latest stupid room has a name with more than 64 characters, and + we still had a 64-byte room name in the march_list struct. ooooops... + Revision 505.6 2004/02/26 03:07:26 ajc * Put the /favicon.ico --> /static/favicon.ico hack back in. Why not? @@ -1684,3 +1690,4 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix + diff --git a/webcit/context_loop.c b/webcit/context_loop.c index 5d01bf297..e6e1bdbdb 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -315,7 +315,7 @@ void context_loop(int sock) strcpy(req->line, "GET /static/robots.txt" "?force_close_session=yes HTTP/1.0"); } - if (!strncasecmp(buf, "/favicon.ico", 12)) { + else if (!strncasecmp(buf, "/favicon.ico", 12)) { strcpy(req->line, "GET /static/favicon.ico"); } @@ -338,10 +338,10 @@ void context_loop(int sock) * need JavaScript added to force the frameset to reload. */ if ( (!strcasecmp(buf, "/")) - || (!strcasecmp(buf, "/static/mainframeset.html")) - || (!strcasecmp(buf, "/static/robots.txt")) + || (!strncasecmp(buf, "/static/", 8)) || (!strncasecmp(buf, "/do_welcome", 11)) || (!strncasecmp(buf, "/do_logout", 10)) + || (!strncasecmp(buf, "/login", 6)) || (!strncasecmp(buf, "/page_popup", 11)) || (!strncasecmp(buf, "/page_user", 10)) /* Sometimes this is wrong */ || (!strncasecmp(buf, "/listsub", 8)) diff --git a/webcit/static/head.html b/webcit/static/head.html index 6cbd7cc8d..0a8ada22a 100644 --- a/webcit/static/head.html +++ b/webcit/static/head.html @@ -8,7 +8,6 @@ - diff --git a/webcit/static/mainframeset.html b/webcit/static/mainframeset.html index 55ef53bfe..e07f5dc3b 100644 --- a/webcit/static/mainframeset.html +++ b/webcit/static/mainframeset.html @@ -4,7 +4,6 @@ Citadel - diff --git a/webcit/webcit.h b/webcit/webcit.h index b9d261bd0..0cb600824 100644 --- a/webcit/webcit.h +++ b/webcit/webcit.h @@ -114,7 +114,7 @@ struct serv_info { */ struct march { struct march *next; - char march_name[32]; + char march_name[128]; int march_floor; int march_order; }; @@ -126,7 +126,7 @@ struct march { struct roomlisting { struct roomlisting *lnext; struct roomlisting *rnext; - char rlname[64]; + char rlname[128]; unsigned rlflags; int rlfloor; int rlorder; -- 2.39.2