aboutsummaryrefslogtreecommitdiffstats
path: root/net/httpserver.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-05-05 14:20:26 +0100
committerMatthew Wild <mwild1@gmail.com>2009-05-05 14:20:26 +0100
commit794ba972aff856e82e95f20d593b8d318d23654b (patch)
tree8e18b577e3bfdd1834e4dfc747b96003fbc079b4 /net/httpserver.lua
parent2fff09895975e5b2fb3d0aee38c2f652c6029e15 (diff)
parenta4afb372653da9df1bc407230838a7bb958242ac (diff)
downloadprosody-794ba972aff856e82e95f20d593b8d318d23654b.tar.gz
prosody-794ba972aff856e82e95f20d593b8d318d23654b.zip
Merge with 0.4
Diffstat (limited to 'net/httpserver.lua')
-rw-r--r--net/httpserver.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/httpserver.lua b/net/httpserver.lua
index 12328b29..af23a91d 100644
--- a/net/httpserver.lua
+++ b/net/httpserver.lua
@@ -11,7 +11,7 @@ local t_insert, t_concat = table.insert, table.concat;
local s_match, s_gmatch = string.match, string.gmatch;
local tonumber, tostring, pairs = tonumber, tostring, pairs;
-local urlencode = function (s) return s and (s:gsub("%W", function (c) return string.format("%%%x", c:byte()); end)); end
+local urlencode = function (s) return s and (s:gsub("%W", function (c) return string.format("%%%02x", c:byte()); end)); end
local log = require "util.logger".init("httpserver");