* luci/themes: add striptags() to page titles
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 20 Aug 2008 17:08:15 +0000 (17:08 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 20 Aug 2008 17:08:15 +0000 (17:08 +0000)
themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm
themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm

index db29affb98bc553e267e15e6eaba4b4472a55bfb..5cc240ef668bb40dde5e1a9b4ff022dd08469b57 100644 (file)
@@ -43,7 +43,7 @@ require("luci.http").prepare_content("text/html")
        <% if node and node.css then %><link rel="stylesheet" type="text/css" href="<%=resource%>/<%=node.css%>" /><% end %>
        <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
        <meta http-equiv="content-script-type" content="text/javascript" />
        <% if node and node.css then %><link rel="stylesheet" type="text/css" href="<%=resource%>/<%=node.css%>" /><% end %>
        <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
        <meta http-equiv="content-script-type" content="text/javascript" />
-       <title><%= hostname .. ( (node and node.title) and ' - ' .. node.title or '') %> - LuCI</title>
+       <title><%=striptags( hostname .. ( (node and node.title) and ' - ' .. node.title or '')) %> - LuCI</title>
 
        <!--[if lt IE 7]>
                <script type="text/javascript">
 
        <!--[if lt IE 7]>
                <script type="text/javascript">
index fe0fa0b33de9b3b7bc1a26683e6c367877e46910..0d9d1bd2e5f2060bbfb54d00e2842fda64e56cf3 100644 (file)
@@ -43,7 +43,7 @@ require("luci.http").prepare_content("text/html")
        <% if node and node.css then %><link rel="stylesheet" type="text/css" href="<%=resource%>/<%=node.css%>" /><% end %>
        <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
        <meta http-equiv="content-script-type" content="text/javascript" />
        <% if node and node.css then %><link rel="stylesheet" type="text/css" href="<%=resource%>/<%=node.css%>" /><% end %>
        <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
        <meta http-equiv="content-script-type" content="text/javascript" />
-       <title><%= hostname .. ( (node and node.title) and ' - ' .. node.title or '') %> - LuCI</title>
+       <title><%=striptags( hostname .. ( (node and node.title) and ' - ' .. node.title or '')) %> - LuCI</title>
 
        <!--[if lt IE 7]>
                <script type="text/javascript">
 
        <!--[if lt IE 7]>
                <script type="text/javascript">
index b3a53c5894af4a24fb9b4d9925f295bda0a9a286..c875e8db0401918f6078dc547c3196e622b4c2ff 100644 (file)
@@ -43,7 +43,7 @@ require("luci.http").prepare_content("text/html")
        <% if node and node.css then %><link rel="stylesheet" type="text/css" href="<%=resource%>/<%=node.css%>" /><% end %>
        <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
        <meta http-equiv="content-script-type" content="text/javascript" />
        <% if node and node.css then %><link rel="stylesheet" type="text/css" href="<%=resource%>/<%=node.css%>" /><% end %>
        <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
        <meta http-equiv="content-script-type" content="text/javascript" />
-       <title><%= hostname .. ( (node and node.title) and ' - ' .. node.title or '') %> - LuCI</title>
+       <title><%=striptags( hostname .. ( (node and node.title) and ' - ' .. node.title or '')) %> - LuCI</title>
 
        <!--[if lt IE 7]>
                <script type="text/javascript">
 
        <!--[if lt IE 7]>
                <script type="text/javascript">