Software /
code /
prosody
Changeset
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 |
parents | 5810:99ad8d42d0c9 |
children | 5812:57ebf93ec720 |
files | core/configmanager.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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