Mercurial > prosody-modules
diff mod_firewall/actions.lib.lua @ 6509:f61564e11d3b
various: Adjust for loop variables becoming constants in Lua 5.5
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 07 Apr 2026 14:30:31 +0200 |
| parents | 1ac4a59ac575 |
| children | de1f17ed4dac |
line wrap: on
line diff
--- a/mod_firewall/actions.lib.lua Tue Apr 07 06:51:05 2026 +0200 +++ b/mod_firewall/actions.lib.lua Tue Apr 07 14:30:31 2026 +0200 @@ -12,7 +12,7 @@ local function compile_xml(data) local code = {}; local first, short_close = true, nil; - for tagline, text in data:gmatch("<([^>]+)>([^<]*)") do + for _, tagline, text in data:gmatch("()<([^>]+)>([^<]*)") do if tagline:sub(-1,-1) == "/" then tagline = tagline:sub(1, -2); short_close = true;
