From 29790d4e1d6057e91904eddc4d3049f475d76e16 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 26 Feb 2004 03:07:26 +0000 Subject: [PATCH] * Put the /favicon.ico --> /static/favicon.ico hack back in. Why not? --- webcit/ChangeLog | 4 +++- webcit/README.txt | 3 +++ webcit/context_loop.c | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 5ad9a9165..ea4689abd 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,7 @@ $Log$ +Revision 505.6 2004/02/26 03:07:26 ajc +* Put the /favicon.ico --> /static/favicon.ico hack back in. Why not? + Revision 505.5 2004/02/25 23:10:28 ajc * Allow "/do_logout" as a no-frames page @@ -1681,4 +1684,3 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix - diff --git a/webcit/README.txt b/webcit/README.txt index f9b164e0a..0d9a2b72d 100644 --- a/webcit/README.txt +++ b/webcit/README.txt @@ -122,6 +122,9 @@ ones which you may be interested in are: -> hello.gif: your system's logo. It is displayed along with the logon banner, and on the top left corner of each page. + If you would like to deploy a "favicon.ico" graphic, please put it in +the static/ directory. WebCit will properly serve it from there. + CALENDAR SERVICE ---------------- diff --git a/webcit/context_loop.c b/webcit/context_loop.c index e6842f9ce..5d01bf297 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -309,12 +309,15 @@ void context_loop(int sock) /* * While we're at it, gracefully handle requests for the - * robots.txt file... + * robots.txt and favicon.ico files. */ if (!strncasecmp(buf, "/robots.txt", 11)) { strcpy(req->line, "GET /static/robots.txt" "?force_close_session=yes HTTP/1.0"); } + if (!strncasecmp(buf, "/favicon.ico", 12)) { + strcpy(req->line, "GET /static/favicon.ico"); + } /* These are the URL's which may be executed without a * session cookie already set. If it's not one of these, -- 2.39.2