summaryrefslogtreecommitdiffhomepage
path: root/themes/openwrt.org/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-10-31 20:25:56 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-10-31 20:25:56 +0000
commit0694d421eb6b45a8f0ee6c2b158dbb77883f263d (patch)
treedfd3344bb5f44c82194cae2ce12e65bc07078e7d /themes/openwrt.org/luasrc
parenteeed712024f1779c35a2bb85caf1fb4b366a0385 (diff)
themes: entity fixes for theme headers
Diffstat (limited to 'themes/openwrt.org/luasrc')
-rw-r--r--themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm10
1 files changed, 5 insertions, 5 deletions
diff --git a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
index 93ee32eb41..e523d2716e 100644
--- a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
+++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
@@ -1,4 +1,4 @@
-<%#
+a<%#
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
@@ -49,7 +49,7 @@ require("luci.http").prepare_content("application/xhtml+xml")
<script type="text/javascript" src="<%=resource%>/VarType.js"></script>
<script type="text/javascript" src="<%=resource%>/XHTML1.js"></script>
<script type="text/javascript" src="<%=resource%>/Dropdowns.js"></script>
-<title><%=striptags( hostname .. ( (node and node.title) and ' - ' .. pcdata(node.title) or '')) %> - LuCI</title>
+<title><%=striptags( hostname .. ( (node and node.title) and ' - ' .. node.title or '')) %> - LuCI</title>
</head>
<body class="lang_<%=luci.i18n.context.lang%>">
@@ -96,7 +96,7 @@ local function submenu(prefix, node)
local href = controller .. prefix .. v.name .. "/"
href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href
%>
-<li><a<% if nnode._menu_selected then %> class="active"<%end%> href="<%=luci.util.pcdata(href)%>"><%=pcdata(nnode.title)%></a><%-
+<li><a<% if nnode._menu_selected then %> class="active"<%end%> href="<%=pcdata(href)%>"><%=pcdata(striptags(nnode.title))%></a><%-
submenu(prefix .. v.name .. "/", nnode)
%></li>
<%-
@@ -122,7 +122,7 @@ if cattree and cattree.nodes then
local href = controller.."/"..category.."/"..k.name.."/"
href = (k.query) and href .. luci.http.build_querystring(k.query) or href
%>
-<li><a<% if node._menu_selected then %> class="preactive"<%end%> href="<%=href%>"><%=pcdata(node.title)%></a><%
+<li><a<% if node._menu_selected then %> class="preactive"<%end%> href="<%=pcdata(href)%>"><%=pcdata(striptags(node.title))%></a><%
submenu("/" .. category .. "/" .. k.name .. "/", node)
%></li><% end
end
@@ -133,7 +133,7 @@ end
<ul id="modemenu"><%
for k,node in pairs(tree.nodes) do
if node.title and not node.hidden then %>
-<li><a<% if request[1] == k then %> class="active"<%end%> href="<%=controller%>/<%=k%>/"><%=pcdata(node.title)%></a></li><%
+<li><a<% if request[1] == k then %> class="active"<%end%> href="<%=controller%>/<%=k%>/"><%=pcdata(striptags(node.title))%></a></li><%
end
end
%>