aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody2
1 files changed, 1 insertions, 1 deletions
diff --git a/prosody b/prosody
index 3b95663f..98d15da2 100755
--- a/prosody
+++ b/prosody
@@ -115,7 +115,7 @@ function mkdir(path)
path = path:gsub("/", path_separator);
local x = io.popen("mkdir \""..path.."\" 2>&1"):read("*a");
end
-function encode(s) return s and (s:gsub("%W", function (c) return string.format("%%%x", c:byte()); end)); end
+function encode(s) return s and (s:gsub("%W", function (c) return string.format("%%%02x", c:byte()); end)); end
function mkdirs(host)
if not _mkdir[host] then
local host_dir = string.format("%s/%s", data_path, encode(host));