Stop using unsafe characters

Several characters used for short path generation are unsafe to
use without escaping. Remove those.
This commit is contained in:
Robin Malley 2021-02-03 05:23:28 +00:00
parent ec00fcaf08
commit 45e1ba3fcb
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ end
local url_characters =
[[abcdefghijklmnopqrstuvwxyz]]..
[[ABCDEFGHIJKLMNOPQRSTUVWXYZ]]..
[[0123456789]]..
[[$-+!*'(),]]
[[0123456789]]
local url_characters_rev = {}
for i = 1,string.len(url_characters) do
url_characters_rev[string.sub(url_characters,i,i)] = i