Software /
code /
prosody
Diff
net/httpserver.lua @ 1119:61a011ebe243
Merge with 0.4
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 05 May 2009 14:20:26 +0100 |
parent | 1112:e8a00a2ea910 |
parent | 1113:89ac8e9e1426 |
child | 1435:7a073b0a8f6a |
line wrap: on
line diff
--- a/net/httpserver.lua Mon May 04 19:57:05 2009 +0100 +++ b/net/httpserver.lua Tue May 05 14:20:26 2009 +0100 @@ -11,7 +11,7 @@ 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");