From f667b85528fc1b40c418cc745c12229b8f97bf7c Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 25 Aug 2011 12:07:36 +0500 Subject: configmanager: resolve_relative_path: Improved detection of absolute paths on Windows. --- core/configmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/configmanager.lua') 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 -- cgit v1.2.3