diff --git a/access.lua b/access.lua index 7658374..68895bf 100644 --- a/access.lua +++ b/access.lua @@ -204,8 +204,8 @@ function is_protected() end for _, url in ipairs(conf["protected_urls"]) do - if hlp.string.starts(ngx.var.host..ngx.var.uri, url) - or hlp.string.starts(ngx.var.uri, url) then + if hlp.string.starts(ngx.var.host..ngx.var.uri..hlp.uri_args_string(), url) + or hlp.string.starts(ngx.var.uri..hlp.uri_args_string(), url) then return true end end