luci-base: form.js: fix AbstractValue.textvalue() for uci list options
authorJo-Philipp Wich <jo@mein.io>
Fri, 16 Apr 2021 15:29:32 +0000 (17:29 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 16 Apr 2021 15:32:22 +0000 (17:32 +0200)
commit5c792aefc744d1417fc9e24cfb92cd61cf8a651f
tree7fe0880ec5d20f69f91dacafd34ff0e63d829cac
parent6cda999e80399d2d8982be6737711c780f3df289
luci-base: form.js: fix AbstractValue.textvalue() for uci list options

Serialize the uci list value into a space separated string before passing
it to String.format() for HTML escaping. Without that change, empty strings
were returned whenever the underlying uci get operation yieled an array.

Fixes: #4993
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/form.js