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:
cb1dee0
)
libs/web: allow percent sign in urls
author
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 13 Nov 2010 20:50:20 +0000
(20:50 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 13 Nov 2010 20:50:20 +0000
(20:50 +0000)
libs/web/luasrc/dispatcher.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/dispatcher.lua
b/libs/web/luasrc/dispatcher.lua
index 451476202d456cd8fd6ce8e6861af0c4e073317e..0f49b90ce3569213c2f866d7230d9ef95e07f292 100644
(file)
--- a/
libs/web/luasrc/dispatcher.lua
+++ b/
libs/web/luasrc/dispatcher.lua
@@
-64,7
+64,7
@@
function build_url(...)
local p
for _, p in ipairs(path) do
- if p:match("^[a-zA-Z0-9_%-%./,;]+$") then
+ if p:match("^[a-zA-Z0-9_%-%.
%%
/,;]+$") then
url[#url+1] = "/"
url[#url+1] = p
end