luci-base: consider empty parameters as well when testing POST requirement
authorJo-Philipp Wich <jo@mein.io>
Mon, 9 Apr 2018 05:04:38 +0000 (07:04 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 9 Apr 2018 05:19:28 +0000 (07:19 +0200)
commitb1b5723516a5ad11174c531c1c792dec5b753303
tree48064aa28aeee07b493c3ec3ca23e5480678fd6a
parent0ab0303527cd8c006dc0e570e4385fc6e9c6ab40
luci-base: consider empty parameters as well when testing POST requirement

The cbi class will react on an empty "cbi.submit" parameter as well so we
must intercept GET requests using that too.

Fixes 186e690c0 ("luci-base: dispatcher: reject non-POST requests with any cbi.submit value")

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/dispatcher.lua