luci-base: properly handle repeated POST parameters
authorJo-Philipp Wich <jo@mein.io>
Thu, 19 Apr 2018 09:56:44 +0000 (11:56 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 19 Apr 2018 10:00:13 +0000 (12:00 +0200)
commit172155eb4650e8d81610cbf2e8d358b28003fddc
tree19329f82cfbc3dd048c0ce14729f9b4116276af7
parent9b22c9c1e1290f077297b14b835b3b9085b48bde
luci-base: properly handle repeated POST parameters

Restore the old luci.http behaviour of converting repeated POST params into
single tables holding all values instead of letting each repeated parameter
overwrite the value of the preceeding one.

Fixes, among other things, the handling of CBI dynamic list values.

Fixes #1752
Fixes 59dea0230 ("luci-base: switch to lucihttp based POST data processing")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/http.lua