Software /
code /
prosody
Diff
core/configmanager.lua @ 5811:27ae988f5b70
configmanager: Fix checking of absolute paths on Windows
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 30 Aug 2013 18:51:55 +0200 |
parent | 5413:0bf5e90be086 |
child | 5814:5cf1c08805fb |
child | 6166:46cb87d531a7 |
line wrap: on
line diff
--- a/core/configmanager.lua Fri Aug 30 16:14:31 2013 +0200 +++ b/core/configmanager.lua Fri Aug 30 18:51:55 2013 +0200 @@ -77,7 +77,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) ~= ":\\" or path:sub(2,3) ~= ":/")) then + elseif path_sep == "\\" and (path:sub(1,1) ~= "/" and (path:sub(2,3) ~= ":\\" and path:sub(2,3) ~= ":/")) then is_relative = true; end if is_relative then