diff options
author | Kim Alvefur <zash@zash.se> | 2016-11-20 12:05:43 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-11-20 12:05:43 +0100 |
commit | f0bd3ec40322b46444b6d944fce24e5beaaf0bf4 (patch) | |
tree | 3b53a79e8565e0e2f4a89930f36cf4f0ec7c2907 /util | |
parent | e3ab638262a338df9f31b351a47c430f9e067832 (diff) | |
download | prosody-f0bd3ec40322b46444b6d944fce24e5beaaf0bf4.tar.gz prosody-f0bd3ec40322b46444b6d944fce24e5beaaf0bf4.zip |
util.datamanager: Remove extraneous decoding of + to space, which we never never encode to
Diffstat (limited to 'util')
-rw-r--r-- | util/datamanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua index 148605d9..ddc71899 100644 --- a/util/datamanager.lua +++ b/util/datamanager.lua @@ -53,7 +53,7 @@ do local urlcodes = setmetatable({}, { __index = function (t, k) t[k] = char(tonumber(k, 16)); return t[k]; end }); decode = function (s) - return s and (s:gsub("+", " "):gsub("%%([a-fA-F0-9][a-fA-F0-9])", urlcodes)); + return s and (s:gsub("%%([a-fA-F0-9][a-fA-F0-9])", urlcodes)); end encode = function (s) |