From 11ce918b62d0c881e94b67c08124e0f35a64a3cc Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 12 Feb 2010 19:44:49 +0000 Subject: Never authenticate favicon.ico or robots.txt --- module/mod_auth_singleid.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/mod_auth_singleid.c b/module/mod_auth_singleid.c index 8167139..e9e6a0a 100644 --- a/module/mod_auth_singleid.c +++ b/module/mod_auth_singleid.c @@ -1190,6 +1190,11 @@ hook_authenticate (request_rec* r) req.sess = NULL; req.output = NULL; + /* We never authenticate these special paths, that clients request without user */ + if (compare_paths ("/favicon.ico", r->uri) == 0 || + compare_paths ("/robots.txt", r->uri) == 0) + return OK; + /* Should we logout? */ if (compare_paths (ctx->logout_path, r->uri) == 0) { session_send_clear (ctx, r); -- cgit v1.2.3