# HG changeset patch # User Waqas Hussain # Date 1314256056 -18000 # Node ID 86be454168fbb6cc35cc69eb9baf520cdedf63d7 # Parent d6928b78c548cc108a5f615d23ad14376958f93b configmanager: resolve_relative_path: Improved detection of absolute paths on Windows. diff -r d6928b78c548 -r 86be454168fb core/configmanager.lua --- 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