Test if we should skip or unprotect the url

This commit is contained in:
Kay0u 2020-03-05 00:24:06 +01:00
parent bf0dc73381
commit eb2872d5ed
No known key found for this signature in database
GPG key ID: 7FF262C033518333

View file

@ -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