aboutsummaryrefslogtreecommitdiffstats
path: root/tools/migration
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-04-05 14:34:48 +0100
committerMatthew Wild <mwild1@gmail.com>2011-04-05 14:34:48 +0100
commitf9191fdb2c019fac2d6dd41d878813a001aa12eb (patch)
treeeb1ec110f3f3f54ef5669dc4f1dae3b7507ad700 /tools/migration
parent747f5e7ccf990ad014969251fe3c8ecce95226ff (diff)
downloadprosody-0.8.0.tar.gz
prosody-0.8.0.zip
tools/migration/migrator/prosody_files.lua: Fix for previous commitvault/0.8.00.8.0
Diffstat (limited to 'tools/migration')
-rw-r--r--tools/migration/migrator/prosody_files.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/migration/migrator/prosody_files.lua b/tools/migration/migrator/prosody_files.lua
index fe48e7a4..4e42f564 100644
--- a/tools/migration/migrator/prosody_files.lua
+++ b/tools/migration/migrator/prosody_files.lua
@@ -13,6 +13,7 @@ local mtools = require "migrator.mtools";
local next = next;
local pairs = pairs;
local json = require "util.json";
+local os_getenv = os.getenv;
prosody = {};
local dm = require "util.datamanager"
@@ -22,7 +23,7 @@ module "prosody_files"
local function is_dir(path) return lfs.attributes(path, "mode") == "directory"; end
local function is_file(path) return lfs.attributes(path, "mode") == "file"; end
local function clean_path(path)
- return path:gsub("\\", "/"):gsub("//+", "/"):gsub("^~", os.getenv("HOME") or "~");
+ return path:gsub("\\", "/"):gsub("//+", "/"):gsub("^~", os_getenv("HOME") or "~");
end
local encode, decode; do
local urlcodes = setmetatable({}, { __index = function (t, k) t[k] = char(tonumber("0x"..k)); return t[k]; end });