libs/web: Fixed a bug regarding % characters in luci.template
This commit is contained in:
parent
8895d236ea
commit
90c98540b1
1 changed files with 1 additions and 0 deletions
|
@ -93,6 +93,7 @@ function compile(template)
|
||||||
-- Parse the expressions
|
-- Parse the expressions
|
||||||
for k,v in pairs(expr) do
|
for k,v in pairs(expr) do
|
||||||
local p = v:sub(1, 1)
|
local p = v:sub(1, 1)
|
||||||
|
v = v:gsub("%%", "%%%%")
|
||||||
local re = nil
|
local re = nil
|
||||||
if p == "+" then
|
if p == "+" then
|
||||||
re = r_include:format(sanitize(string.sub(v, 2)))
|
re = r_include:format(sanitize(string.sub(v, 2)))
|
||||||
|
|
Loading…
Reference in a new issue