libs/web: allow percent sign in urls
This commit is contained in:
parent
cb1dee09e1
commit
fa3b7ce070
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ function build_url(...)
|
||||||
|
|
||||||
local p
|
local p
|
||||||
for _, p in ipairs(path) do
|
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] = "/"
|
||||||
url[#url+1] = p
|
url[#url+1] = p
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue