summaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2010-02-12 19:44:49 +0000
committerStef Walter <stef@memberwebs.com>2010-02-12 19:44:49 +0000
commit11ce918b62d0c881e94b67c08124e0f35a64a3cc (patch)
tree64fd46e086176717b320fdbfec10f579f2652fe1 /module
parent88c280a567862975a6dbe932144c13b9608bbbd1 (diff)
Never authenticate favicon.ico or robots.txt
Diffstat (limited to 'module')
-rw-r--r--module/mod_auth_singleid.c5
1 files changed, 5 insertions, 0 deletions
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);