luci-app-firewall: zones.js: fix HTML display in ct helper selection
authorJo-Philipp Wich <jo@mein.io>
Mon, 1 Mar 2021 08:09:35 +0000 (09:09 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 1 Mar 2021 08:14:07 +0000 (09:14 +0100)
Fixes: #4845
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 154117ff05d0ecbe97ee98493bb647f526166b50)

applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js

index 6bb366e37e12270fb3d5214c7e35fa721cff4dac..8a9b1b4bcd1056542b39250a60136b33b28dcc66 100644 (file)
@@ -251,7 +251,7 @@ return view.extend({
                o.depends('auto_helper', '0');
                o.modalonly = true;
                for (var i = 0; i < ctHelpers.length; i++)
-                       o.value(ctHelpers[i].name, '<span class="hide-close">%s (%s)</span><span class="hide-open">%s</span>'.format(ctHelpers[i].description, ctHelpers[i].name.toUpperCase(), ctHelpers[i].name.toUpperCase()));
+                       o.value(ctHelpers[i].name, E('<span><span class="hide-close">%s (%s)</span><span class="hide-open">%s</span></span>'.format(ctHelpers[i].description, ctHelpers[i].name.toUpperCase(), ctHelpers[i].name.toUpperCase())));
 
                o = s.taboption('advanced', form.Flag, 'log', _('Enable logging on this zone'));
                o.modalonly = true;