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") %>
|
<% include("themes/bootstrap/json-menu") %>
|
||||||
</head>
|
</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>
|
<header>
|
||||||
<div class="fill">
|
<div class="fill">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
|
@ -184,7 +184,7 @@
|
||||||
})();
|
})();
|
||||||
//]]></script>
|
//]]></script>
|
||||||
</head>
|
</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>
|
<header>
|
||||||
<div class="fill">
|
<div class="fill">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
|
@ -188,7 +188,7 @@
|
||||||
//]]></script>
|
//]]></script>
|
||||||
<title><%=striptags( (boardinfo.hostname or "?") .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI</title>
|
<title><%=striptags( (boardinfo.hostname or "?") .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI</title>
|
||||||
</head>
|
</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">
|
<p class="skiplink">
|
||||||
<span id="skiplink1"><a href="#navigation"><%:Skip to navigation%></a></span>
|
<span id="skiplink1"><a href="#navigation"><%:Skip to navigation%></a></span>
|
||||||
|
|
Loading…
Reference in a new issue