diff options
author | Waqas Hussain <waqas20@gmail.com> | 2011-08-25 12:07:36 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2011-08-25 12:07:36 +0500 |
commit | e583053022f8d0dcdbe24fe2786e93cfd25ef320 (patch) | |
tree | c58c63c39eddf26b5ec31ec606dec1432039ed54 /core/configmanager.lua | |
parent | d22f972445b110dcf242db0285a03d5dc5ad1a96 (diff) | |
download | prosody-e583053022f8d0dcdbe24fe2786e93cfd25ef320.tar.gz prosody-e583053022f8d0dcdbe24fe2786e93cfd25ef320.zip |
configmanager: resolve_relative_path: Improved detection of absolute paths on Windows.
Diffstat (limited to 'core/configmanager.lua')
-rw-r--r-- | core/configmanager.lua | 2 |
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 |