diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-05-05 14:20:26 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-05-05 14:20:26 +0100 |
commit | 794ba972aff856e82e95f20d593b8d318d23654b (patch) | |
tree | 8e18b577e3bfdd1834e4dfc747b96003fbc079b4 /net/httpserver.lua | |
parent | 2fff09895975e5b2fb3d0aee38c2f652c6029e15 (diff) | |
parent | a4afb372653da9df1bc407230838a7bb958242ac (diff) | |
download | prosody-794ba972aff856e82e95f20d593b8d318d23654b.tar.gz prosody-794ba972aff856e82e95f20d593b8d318d23654b.zip |
Merge with 0.4
Diffstat (limited to 'net/httpserver.lua')
-rw-r--r-- | net/httpserver.lua | 2 |
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"); |