From: Jo-Philipp Wich Date: Sat, 13 Nov 2010 20:50:20 +0000 (+0000) Subject: libs/web: allow percent sign in urls X-Git-Tag: 0.10.0~493 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fa3b7ce070ca154b67d4653f1149a33ea7bef448;p=oweals%2Fluci.git libs/web: allow percent sign in urls --- diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 451476202..0f49b90ce 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