From 8f4e05030e5c5a7c4a37676529c9246dd7ae6235 Mon Sep 17 00:00:00 2001 From: "Brett T. Warden" <4c0e8e88@tm.wgz.org> Date: Fri, 10 Feb 2023 09:19:09 -0800 Subject: [PATCH] Use luci's urldecode_params to handle query string (#703) --- files/usr/lib/lua/aredn/utils.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/files/usr/lib/lua/aredn/utils.lua b/files/usr/lib/lua/aredn/utils.lua index 36bb8071..ba59e977 100755 --- a/files/usr/lib/lua/aredn/utils.lua +++ b/files/usr/lib/lua/aredn/utils.lua @@ -37,6 +37,7 @@ local nxo = require("nixio") local ipc = require("luci.ip") +require("luci.http") require("uci") function round2(num, idp) @@ -65,10 +66,7 @@ end function parseQueryString(qs) local qsa={} if qs ~=nil then - for i,j in pairs(qs:split("&")) do - z=j:split("=") - qsa[z[1]]=z[2] - end + qsa = luci.http.urldecode_params(qs) end return qsa end