Ngx_lua location capture issue

On 21 October 2011 07:08, agentzh [email protected] wrote:

On Fri, Oct 21, 2011 at 12:02 AM, Nginx U. [email protected] wrote:

On 20 October 2011 14:48, agentzh [email protected] wrote:
Take this regex for example: (?:^>[\w\s]*</?\w{2,}>)

Good lord!

Why are you using “^” here? Are you meant to match from the very start
of your $request_uri string?
Very start of GET Arg, Yes … It searches for an injection attempt.
ngx_lua location capture issue

Thanks for your help.
Enjoying my journey through ngx_lua!

On 21 October 2011 17:00, Nginx U. [email protected] wrote:

I have since moved on to …

local args = ngx.req.get_uri_args()
for key, val in pairs(args) do
if type(val) == “table” then
my_arg = table.concat(val, ", ")
else
my_arg = val
end
if my_arg then

  •            if my_arg then
    
  •            if my_arg and type( my_arg ) ~= "boolean" then