mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[fix] match protected URIs against URL arguments
This commit is contained in:
parent
3b2bc73df5
commit
af53f4d393
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue