webcommands: fix %20 to space

master
rnd 2018-12-23 20:06:01 +01:00
parent 5f8659dbb2
commit 76824674c1
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ if not fetch then
state = 0
if not res.succeeded then self.label("#ERROR: data couldn't be downloaded :\n" .. minetest.serialize(res) ) return end
if res.data == "" then return end
local req = res.data; req = string.gsub(req,"%%20","S")
if res.data then self.label(os.clock() .. ' received cmd : ' .. res.data) end
local req = res.data; req = string.gsub(req,"%%20"," ")
if res.data then self.label(os.clock() .. ' received cmd : ' .. req) end
end
end