summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-11-13 20:50:20 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-11-13 20:50:20 +0000
commitfa3b7ce070ca154b67d4653f1149a33ea7bef448 (patch)
treed1c3e6ec09f6dae7de0ab853763d7fd3be748c06 /libs/web/luasrc
parentcb1dee09e12ff5c62dfc1367f02f2ea6804fecfd (diff)
libs/web: allow percent sign in urls
Diffstat (limited to 'libs/web/luasrc')
-rw-r--r--libs/web/luasrc/dispatcher.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua
index 451476202d..0f49b90ce3 100644
--- 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