aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-12-16 03:46:17 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-12-16 03:46:17 +0500
commitd3d9a986ba588bba4f28b856f19f2a75209d3763 (patch)
tree06473e4c31217a4a04dbbada58a17c8049027f33 /util
parent2e83fd69f77f90552c27526f4899e6c1fed18549 (diff)
downloadprosody-d3d9a986ba588bba4f28b856f19f2a75209d3763.tar.gz
prosody-d3d9a986ba588bba4f28b856f19f2a75209d3763.zip
Fixed URL encoding to generate %0x instead of %x
Diffstat (limited to 'util')
-rw-r--r--util/datamanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index e229de1c..45da17dd 100644
--- a/util/datamanager.lua
+++ b/util/datamanager.lua
@@ -44,7 +44,7 @@ do
end
encode = function (s)
- return s and (s:gsub("%W", function (c) return format("%%%x", c:byte()); end));
+ return s and (s:gsub("%W", function (c) return format("%%%02x", c:byte()); end));
end
end