projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8895d23
)
libs/web: Fixed a bug regarding % characters in luci.template
author
Steven Barth
<steven@midlink.org>
Fri, 18 Jul 2008 20:53:45 +0000
(20:53 +0000)
committer
Steven Barth
<steven@midlink.org>
Fri, 18 Jul 2008 20:53:45 +0000
(20:53 +0000)
libs/web/luasrc/template.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/template.lua
b/libs/web/luasrc/template.lua
index 5647865f7a298bb411a07ebc1a868aa516639855..18abf6df819ef6df979b893cdcfee640c3d26ce9 100644
(file)
--- a/
libs/web/luasrc/template.lua
+++ b/
libs/web/luasrc/template.lua
@@
-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)))