summaryrefslogtreecommitdiffstats
path: root/squark-filter.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-09-03 13:41:04 +0300
committerTimo Teräs <timo.teras@iki.fi>2010-09-03 13:41:04 +0300
commit050e200061d2b5002251c85a83c55bb7e1864a39 (patch)
treeb17b56e60d176bd349e4f419cc25bbfffd1fcc1b /squark-filter.c
parent5bc7fd8f1e41365677eb6787cb7d2a6dea62ee0c (diff)
downloadsquark-050e200061d2b5002251c85a83c55bb7e1864a39.tar.bz2
squark-050e200061d2b5002251c85a83c55bb7e1864a39.tar.xz
auth-ip: implement logout
Implement logout function and some minor fixes.
Diffstat (limited to 'squark-filter.c')
-rw-r--r--squark-filter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/squark-filter.c b/squark-filter.c
index 236dad4..78728de 100644
--- a/squark-filter.c
+++ b/squark-filter.c
@@ -421,8 +421,8 @@ static void read_input(struct sqdb *db)
if (!auth_ok) {
send_redirect(redirect_login_page, id, url, BLOB_STR("auth"), username);
} else if (((1ULL << category) & entry.p.block_categories) &&
- (entry.u.override_time < now ||
- entry.u.override_time + FILTER_OVERRIDE_TIMEOUT > now ||
+ (now < entry.u.override_time ||
+ now > entry.u.override_time + FILTER_OVERRIDE_TIMEOUT ||
((1ULL << category) & entry.p.hard_block_categories))) {
send_redirect(redirect_banned_page, id, url, get_category_name(db, category), username);
} else