From 050e200061d2b5002251c85a83c55bb7e1864a39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 3 Sep 2010 13:41:04 +0300 Subject: auth-ip: implement logout Implement logout function and some minor fixes. --- squark-filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'squark-filter.c') 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 -- cgit v1.2.3