ngx_lua location capture issue

Nginx User nginx at nginxuser.net
Fri Oct 21 14:05:55 UTC 2011


On 21 October 2011 07:08, agentzh <agentzh at gmail.com> wrote:
> On Fri, Oct 21, 2011 at 12:02 AM, Nginx User <nginx at nginxuser.net> wrote:
>> On 20 October 2011 14:48, agentzh <agentzh at gmail.com> 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.
http://mailman.nginx.org/pipermail/nginx/2011-October/029901.html

Thanks for your help.
Enjoying my journey through ngx_lua!



More information about the nginx mailing list