luci-0.9: merge r6424
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 13 Nov 2010 20:51:15 +0000 (20:51 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 13 Nov 2010 20:51:15 +0000 (20:51 +0000)
libs/web/luasrc/dispatcher.lua

index 83ce52cbfe35c83c1e88a7e737f534f470bd6eab..fd864698ddca1103f3dda47a53b6f4347f382e8e 100644 (file)
@@ -61,7 +61,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