Skip to content

Commit

Permalink
chore(api): url decode url params
Browse files Browse the repository at this point in the history
  • Loading branch information
open-dynaMIX committed Dec 6, 2020
1 parent c84e20e commit 7e79f0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,9 @@ local function handle_post(path)
local param1 = components() or ""
local param2 = components() or ""

param1 = url.unescape(param1)
param2 = url.unescape(param2)

local f = commands[command]
if f ~= nil then
local _, success, ret = f(param1, param2)
Expand Down

0 comments on commit 7e79f0f

Please sign in to comment.