From d3d9a986ba588bba4f28b856f19f2a75209d3763 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Tue, 16 Dec 2008 03:46:17 +0500 Subject: Fixed URL encoding to generate %0x instead of %x --- util/datamanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') 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 -- cgit v1.2.3