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
commitf667b85528fc1b40c418cc745c12229b8f97bf7c (patch)
treec58c63c39eddf26b5ec31ec606dec1432039ed54
parentec3c0dac32b1ff3c45fd15751a3c7571ac97d5d3 (diff)
downloadprosody-f667b85528fc1b40c418cc745c12229b8f97bf7c.tar.gz
prosody-f667b85528fc1b40c418cc745c12229b8f97bf7c.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