themes: ensure that data-page attribute is escaped
Fixes: #3757 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
03af89a24b
commit
5d7dc391d4
3 changed files with 3 additions and 3 deletions
|
@ -40,7 +40,7 @@
|
|||
<% include("themes/bootstrap/json-menu") %>
|
||||
</head>
|
||||
|
||||
<body class="lang_<%=luci.i18n.context.lang%> <% if node then %><%= striptags( node.title ) %><%- end %>" data-page="<%= table.concat(disp.context.requestpath, "-") %>">
|
||||
<body class="lang_<%=luci.i18n.context.lang%> <% if node then %><%= striptags( node.title ) %><%- end %>" data-page="<%= pcdata(table.concat(disp.context.requestpath, "-")) %>">
|
||||
<header>
|
||||
<div class="fill">
|
||||
<div class="container">
|
||||
|
|
|
@ -184,7 +184,7 @@
|
|||
})();
|
||||
//]]></script>
|
||||
</head>
|
||||
<body class="lang_<%=luci.i18n.context.lang%> <% if node then %><%= striptags( node.title ) %><% end %> <% if luci.dispatcher.context.authsession then %>logged-in<% end %>" data-page="<%= table.concat(disp.context.requestpath, "-") %>">
|
||||
<body class="lang_<%=luci.i18n.context.lang%> <% if node then %><%= striptags( node.title ) %><% end %> <% if luci.dispatcher.context.authsession then %>logged-in<% end %>" data-page="<%= pcdata(table.concat(disp.context.requestpath, "-")) %>">
|
||||
<header>
|
||||
<div class="fill">
|
||||
<div class="container">
|
||||
|
|
|
@ -188,7 +188,7 @@
|
|||
//]]></script>
|
||||
<title><%=striptags( (boardinfo.hostname or "?") .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI</title>
|
||||
</head>
|
||||
<body class="lang_<%=luci.i18n.context.lang%>" data-page="<%= table.concat(disp.context.requestpath, "-") %>">
|
||||
<body class="lang_<%=luci.i18n.context.lang%>" data-page="<%= pcdata(table.concat(disp.context.requestpath, "-")) %>">
|
||||
|
||||
<p class="skiplink">
|
||||
<span id="skiplink1"><a href="#navigation"><%:Skip to navigation%></a></span>
|
||||
|
|
Loading…
Reference in a new issue