libs/web: Fixed a bug regarding % characters in luci.template

This commit is contained in:
Steven Barth 2008-07-18 20:53:45 +00:00
parent 8895d236ea
commit 90c98540b1

View file

@ -93,6 +93,7 @@ function compile(template)
-- Parse the expressions
for k,v in pairs(expr) do
local p = v:sub(1, 1)
v = v:gsub("%%", "%%%%")
local re = nil
if p == "+" then
re = r_include:format(sanitize(string.sub(v, 2)))