luci/modules/luci-base/ucode
Jo-Philipp Wich 0dd0114a9d luci-base: fix empty reply format in ubus gateway fallback code
The ubus gateway fallback code incorrectly formatted ubus replies
containing no payload data when forwarding them via HTTP, leading
to `TypeError: Unexpected reply data format` errors in at least
the `luci.fs` class when receiving replies without payload.

Fix this issue by ensuring that the result array never contains
a `null` value for the payload, send an one-element array containing
just the status code in this case instead.

Fixes: #6074
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-11-03 11:27:52 +01:00
..
controller/admin luci-base: fix empty reply format in ubus gateway fallback code 2022-11-03 11:27:52 +01:00
template luci-base: add ui indicator when fallback theme is used 2022-10-27 11:14:52 +02:00
dispatcher.uc luci-base: dispatcher.uc: only flush HTTP headers after rendering output 2022-11-03 11:17:55 +01:00
http.uc luci-base: fix luci.http.close() 2022-11-03 00:38:00 +01:00
runtime.uc luci-base: fix luci.http.close() 2022-11-03 00:38:00 +01:00
sys.uc luci-base: sys.uc: reliably skip TIME_WAIT connections in conntrack list 2022-10-25 01:03:37 +02:00
uhttpd.uc treewide: separate Lua runtime resources 2022-10-25 01:03:37 +02:00
zoneinfo.uc timezone data: update to 2022f 2022-10-31 20:04:10 +02:00