Software /
code /
prosody
Diff
core/configmanager.lua @ 4358:86be454168fb
configmanager: resolve_relative_path: Improved detection of absolute paths on Windows.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 25 Aug 2011 12:07:36 +0500 |
parent | 4001:2e8411f6cb14 |
child | 4530:40905e7bf680 |
line wrap: on
line diff
--- a/core/configmanager.lua Thu Aug 25 12:05:27 2011 +0500 +++ b/core/configmanager.lua Thu Aug 25 12:07:36 2011 +0500 @@ -88,7 +88,7 @@ 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