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:47 +0000 (17:32 +0200)
commit06dd6b521db8f2bca8de6606227127caf0c65270
treea381036253f6e7fd444a9df5907a4d420f4c4514
parent93c869efe14fb61897e92e8db5bebbaa245d3414
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>
(cherry picked from commit 5c792aefc744d1417fc9e24cfb92cd61cf8a651f)
modules/luci-base/htdocs/luci-static/resources/form.js