diff options
author | Stef Walter <stef@memberwebs.com> | 2010-02-12 19:44:49 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2010-02-12 19:44:49 +0000 |
commit | 11ce918b62d0c881e94b67c08124e0f35a64a3cc (patch) | |
tree | 64fd46e086176717b320fdbfec10f579f2652fe1 /module | |
parent | 88c280a567862975a6dbe932144c13b9608bbbd1 (diff) |
Never authenticate favicon.ico or robots.txt
Diffstat (limited to 'module')
-rw-r--r-- | module/mod_auth_singleid.c | 5 |
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); |