mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
ModSecurity: fixed compiling with lua 5.2
This commit is contained in:
@@ -440,7 +440,11 @@ static modsec_rec *create_tx_context(request_rec *r) {
|
||||
|
||||
#if defined(WITH_LUA)
|
||||
#ifdef CACHE_LUA
|
||||
#if LUA_VERSION_NUM > 501
|
||||
msr->L = luaL_newstate();
|
||||
#else
|
||||
msr->L = lua_open();
|
||||
#endif
|
||||
luaL_openlibs(msr->L);
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user