From 0938135dbbf8681bbd287612e3f2ed4d6fba3f35 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 20 Aug 2008 17:04:03 +0000 Subject: [PATCH] * luci/libs: add striptags() to global dispatcher namespace --- libs/web/luasrc/dispatcher.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 4253fc04a..dc551916a 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -26,6 +26,7 @@ limitations under the License. --- LuCI web dispatcher. module("luci.dispatcher", package.seeall) +require("luci.util") require("luci.init") require("luci.http") require("luci.sys") @@ -154,6 +155,7 @@ function dispatch(request) tpl.context.viewns = viewns viewns.write = luci.http.write viewns.translate = function(...) return require("luci.i18n").translate(...) end + viewns.striptags = luci.util.striptags viewns.controller = luci.http.getenv("SCRIPT_NAME") viewns.media = luci.config.main.mediaurlbase viewns.resource = luci.config.main.resourcebase -- 2.25.1