util/datamanager.lua

changeset 627
3712d36b6d25
parent 615
4ae3e81513f3
child 643
8ff454831f7d
--- a/util/datamanager.lua	Sat Dec 13 17:43:52 2008 +0000
+++ b/util/datamanager.lua	Tue Dec 16 03:46:17 2008 +0500
@@ -44,7 +44,7 @@
 	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
 

mercurial