summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc/view/cbi/tblsection.htm
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-02-12 08:32:02 +0100
committerJo-Philipp Wich <jo@mein.io>2019-02-12 08:32:02 +0100
commiteda8f02dac3caa4d0f52cd1e860d7a392c295df3 (patch)
treed4d740fedc7f485b7ab3702f62c6cb47cbfb0444 /modules/luci-base/luasrc/view/cbi/tblsection.htm
parent4141243762aafb7960d67f871c97907307005f87 (diff)
treewide: avoid double-escaping CBI section labels
Since the section labels are already HTML-escaped implicitely by the striptags() function, we must not escape them again in attr() or ifattr(). Fixes: #2524 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/luasrc/view/cbi/tblsection.htm')
-rw-r--r--modules/luci-base/luasrc/view/cbi/tblsection.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/view/cbi/tblsection.htm b/modules/luci-base/luasrc/view/cbi/tblsection.htm
index 408dfa7fe8..11c2206d8c 100644
--- a/modules/luci-base/luasrc/view/cbi/tblsection.htm
+++ b/modules/luci-base/luasrc/view/cbi/tblsection.htm
@@ -127,7 +127,7 @@ end
section = k
local sectionname = striptags((type(self.sectiontitle) == "function") and self:sectiontitle(section) or k)
- local sectiontitle = ifattr(sectionname and (not self.anonymous or self.sectiontitle), "data-title", sectionname)
+ local sectiontitle = ifattr(sectionname and (not self.anonymous or self.sectiontitle), "data-title", sectionname, true)
local colorclass = (self.extedit or self.rowcolors) and rowstyle() or ""
local scope = {
valueheader = "cbi/cell_valueheader",