@@ -429,12 +429,12 @@ int lua_execute(msc_script *script, char *param, modsec_rec *msr, msre_rule *rul
429
429
#else
430
430
431
431
/* Create new state. */
432
- #if LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503 || LUA_VERSION_NUM == 501
432
+ #if LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503 || LUA_VERSION_NUM == 504 || LUA_VERSION_NUM == 501
433
433
L = luaL_newstate ();
434
434
#elif LUA_VERSION_NUM == 500
435
435
L = lua_open ();
436
436
#else
437
- #error We are only tested under Lua 5.0, 5.1, 5.2, or 5.3 .
437
+ #error We are only tested under Lua 5.0, 5.1, 5.2, 5.3, or 5.4 .
438
438
#endif
439
439
luaL_openlibs (L );
440
440
@@ -459,10 +459,10 @@ int lua_execute(msc_script *script, char *param, modsec_rec *msr, msre_rule *rul
459
459
/* Register functions. */
460
460
#if LUA_VERSION_NUM == 500 || LUA_VERSION_NUM == 501
461
461
luaL_register (L , "m" , mylib );
462
- #elif LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503
462
+ #elif LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503 || LUA_VERSION_NUM == 504
463
463
luaL_setfuncs (L , mylib , 0 );
464
464
#else
465
- #error We are only tested under Lua 5.0, 5.1, 5.2, or 5.3 .
465
+ #error We are only tested under Lua 5.0, 5.1, 5.2, 5.3, or 5.4 .
466
466
#endif
467
467
468
468
lua_setglobal (L , "m" );
0 commit comments