Software /
code /
prosody
Changeset
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 |
parents | 4357:d6928b78c548 |
children | 4359:c69cbac4178f |
files | core/configmanager.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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