odd behavior from ndk.set_var.set_quote_sql_str

agentzh agentzh at gmail.com
Thu Oct 27 11:57:38 UTC 2011


On Thu, Oct 27, 2011 at 12:59 AM, dannynoonan <nginx-forum at nginx.us> wrote:
> ndk.set_var.set_quote_sql_str sometimes treats the variable supplied as
> a param as if it were an empty string. the following config:
>

Thanks for the report and the use case to reproduce the problem!

I've just fixed a memory uninitialization issue in ngx_lua's
ndk.set_var.DIRECTIVE implementation which could cause the problem
that you've described and released ngx_lua v0.3.1rc23 to include this
fix:

    https://github.com/chaoslawful/lua-nginx-module/tags

Could you please try it out on your side?

If you're using the ngx_openresty bundle, you can also try out the
devel release 1.0.8.25 here:

    http://openresty.org/#Download

Thanks!
-agentzh



More information about the nginx mailing list