aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2011-08-25 12:07:36 +0500
committerWaqas Hussain <waqas20@gmail.com>2011-08-25 12:07:36 +0500
commite583053022f8d0dcdbe24fe2786e93cfd25ef320 (patch)
treec58c63c39eddf26b5ec31ec606dec1432039ed54
parentd22f972445b110dcf242db0285a03d5dc5ad1a96 (diff)
downloadprosody-e583053022f8d0dcdbe24fe2786e93cfd25ef320.tar.gz
prosody-e583053022f8d0dcdbe24fe2786e93cfd25ef320.zip
configmanager: resolve_relative_path: Improved detection of absolute paths on Windows.
-rw-r--r--core/configmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/configmanager.lua b/core/configmanager.lua
index 4cc3ef46..85919492 100644
--- a/core/configmanager.lua
+++ b/core/configmanager.lua
@@ -88,7 +88,7 @@ do
local is_relative;
if path_sep == "/" and path:sub(1,1) ~= "/" then
is_relative = true;
- elseif path_sep == "\\" and (path:sub(1,1) ~= "/" and path:sub(2,3) ~= ":\\") then
+ elseif path_sep == "\\" and (path:sub(1,1) ~= "/" and (path:sub(2,3) ~= ":\\" or path:sub(2,3) ~= ":/")) then
is_relative = true;
end
if is_relative then