Open
Description
I believe that the regular expression on this line would "eat" both the ticket
parameter and all parameters that follow. e.g. a url like &ticket=foo
and &ticket=foo&next=bar
would have bar
"eaten".
local function _uri_without_ticket()
return ngx.var.scheme .. "://" .. ngx.var.host .. ngx.re.sub(ngx.var.request_uri, "[?&]ticket=.*", "")
end
(I'm happy to submit a pull request proposing a fix.)
Activity