mirror of
https://github.com/rxi/lovebird.git
synced 2024-11-15 22:54:21 +00:00
Fixed bad replace string on for :gsub() on env.json page
This commit is contained in:
parent
991a723c5b
commit
744c2ee99b
@ -380,7 +380,7 @@ lovebird.pages["env.json"] = [[
|
||||
<?lua
|
||||
local t = _G
|
||||
local p = req.parsedurl.query.p or ""
|
||||
p = p:gsub("%.+", "%."):match("^[%.]*(.*)[%.]*$")
|
||||
p = p:gsub("%.+", "."):match("^[%.]*(.*)[%.]*$")
|
||||
if p ~= "" then
|
||||
for x in p:gmatch("[^%.]+") do
|
||||
t = t[x] or t[tonumber(x)]
|
||||
|
Loading…
Reference in New Issue
Block a user