From e9e576293628bb608a2b660f597f35206670c10b Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 10 Mar 2021 12:13:11 +0000 Subject: [PATCH] mod_invites_bootstrap: Reject old index values --- snikket-modules/mod_invites_bootstrap/mod_invites_bootstrap.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snikket-modules/mod_invites_bootstrap/mod_invites_bootstrap.lua b/snikket-modules/mod_invites_bootstrap/mod_invites_bootstrap.lua index 591e2b6..23636ec 100644 --- a/snikket-modules/mod_invites_bootstrap/mod_invites_bootstrap.lua +++ b/snikket-modules/mod_invites_bootstrap/mod_invites_bootstrap.lua @@ -27,6 +27,8 @@ local function handle_request(event) if current_index == last_bootstrap.index then event.response.headers.Location = last_bootstrap.result; return 303; + elseif current_index < last_bootstrap.index then + return 410; end end