luci-base: fix handling of large ubus HTTP requests
authorJo-Philipp Wich <jo@mein.io>
Thu, 6 Jun 2019 17:19:31 +0000 (19:19 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 7 Jul 2019 13:36:25 +0000 (15:36 +0200)
commitc5b6f4294325652899ccca0419d7058cfadd7c85
tree81db82edbd14ea7bf70d7028aa5b8ac2d34d268e
parent79be2d57cde7a360a1004ebf5980caf2bd969212
luci-base: fix handling of large ubus HTTP requests

Properly handle ubus POST requests exceeding the default chunk size
and fix a possible nil dereference when rejecting incoming requests
due to bad JSON message framing.

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