# HG changeset patch # User Kim Alvefur # Date 1479639943 -3600 # Node ID 601c4d81603b184b0dce9b74bad602b1866864f6 # Parent aba3dd84d9f09c7bbb7be44b0312e550d76eac3c util.datamanager: Remove extraneous decoding of + to space, which we never never encode to diff -r aba3dd84d9f0 -r 601c4d81603b util/datamanager.lua --- a/util/datamanager.lua Sun Nov 20 12:03:24 2016 +0100 +++ b/util/datamanager.lua Sun Nov 20 12:05:43 2016 +0100 @@ -53,7 +53,7 @@ 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)