diff options
author | Kim Alvefur <zash@zash.se> | 2019-01-16 13:53:04 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-01-16 13:53:04 +0100 |
commit | 7ae9fe492d2e616d94b77c280a2f5e0f2c744075 (patch) | |
tree | 37d221126b4bb853517742623abe2ac9e769452d /util | |
parent | fe9e33d8c22b774d5a1f4cbc0b1145f54201c096 (diff) | |
download | prosody-7ae9fe492d2e616d94b77c280a2f5e0f2c744075.tar.gz prosody-7ae9fe492d2e616d94b77c280a2f5e0f2c744075.zip |
util.http: Fix decoding of uppercase URL encoded chars
Broken in 1af5106a2c34
Diffstat (limited to 'util')
-rw-r--r-- | util/http.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/http.lua b/util/http.lua index 1730d4d4..3852f91c 100644 --- a/util/http.lua +++ b/util/http.lua @@ -15,6 +15,7 @@ for i = 0, 255 do local u = format("%%%02x", i); url_codes[c] = u; url_codes[u] = c; + url_codes[u:upper()] = c; end local function urlencode(s) return s and (s:gsub("[^a-zA-Z0-9.~_-]", url_codes)); |