From eb2872d5ed5eab8b797f1da3dc5ec5def801dac2 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Thu, 5 Mar 2020 00:24:06 +0100 Subject: [PATCH] Test if we should skip or unprotect the url --- access.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/access.lua b/access.lua index 5a598c3..1ec8672 100644 --- a/access.lua +++ b/access.lua @@ -256,7 +256,8 @@ logger.debug("longest protected "..longest_protected_match) -- if longest_skipped_match ~= "" -and string.len(longest_skipped_match) >= string.len(longest_protected_match) then +and string.len(longest_skipped_match) >= string.len(longest_protected_match) +and string.len(longest_skipped_match) > string.len(longest_unprotected_match) then logger.debug("Skipping "..ngx.var.uri) return hlp.pass() end