comparison mod_firewall/actions.lib.lua @ 3973:df6227e288e5

mod_firewall: Fix use of unpack() on Lua 5.3 unpack() was previously a global function, it moved into the table library in either Lua 5.2 or 5.3
author Kim Alvefur <zash@zash.se>
date Mon, 13 Apr 2020 21:53:01 +0200
parents 78049e8b5a6b
children 5a3dfb970888
comparison
equal deleted inserted replaced
3972:45c5603a6c07 3973:df6227e288e5
1 local unpack = table.unpack or unpack;
2
1 local interpolation = require "util.interpolation"; 3 local interpolation = require "util.interpolation";
2 local template = interpolation.new("%b$$", function (s) return ("%q"):format(s) end); 4 local template = interpolation.new("%b$$", function (s) return ("%q"):format(s) end);
3 5
4 --luacheck: globals meta idsafe 6 --luacheck: globals meta idsafe
5 local action_handlers = {}; 7 local action_handlers = {};