@@ -433,12 +433,12 @@ int lua_execute(msc_script *script, char *param, modsec_rec *msr, msre_rule *rul
433433#else
434434
435435 /* Create new state. */
436- #if LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503 || LUA_VERSION_NUM == 504 || LUA_VERSION_NUM == 501
436+ #if LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503 || LUA_VERSION_NUM == 504 || LUA_VERSION_NUM == 505 || LUA_VERSION_NUM == 501
437437 L = luaL_newstate ();
438438#elif LUA_VERSION_NUM == 500
439439 L = lua_open ();
440440#else
441- #error We are only tested under Lua 5.0, 5.1, 5.2, 5.3, or 5.4 .
441+ #error We are only tested under Lua 5.0, 5.1, 5.2, 5.3, 5.4 or 5.5 .
442442#endif
443443 luaL_openlibs (L );
444444
@@ -463,10 +463,10 @@ int lua_execute(msc_script *script, char *param, modsec_rec *msr, msre_rule *rul
463463 /* Register functions. */
464464#if LUA_VERSION_NUM == 500 || LUA_VERSION_NUM == 501
465465 luaL_register (L , "m" , mylib );
466- #elif LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503 || LUA_VERSION_NUM == 504
466+ #elif LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503 || LUA_VERSION_NUM == 504 || LUA_VERSION_NUM == 505
467467 luaL_setfuncs (L , mylib , 0 );
468468#else
469- #error We are only tested under Lua 5.0, 5.1, 5.2, 5.3, or 5.4 .
469+ #error We are only tested under Lua 5.0, 5.1, 5.2, 5.3, 5.4 or 5.5 .
470470#endif
471471
472472 lua_setglobal (L , "m" );
0 commit comments