From f08c718c00c7e6b301e4754a845703732e2ee6c8 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Fri, 18 Mar 2016 12:50:09 -0400 Subject: [PATCH] (fix) handle "username" as path --- Main/SOGo.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Main/SOGo.m b/Main/SOGo.m index fd282cc56..d71bbd629 100644 --- a/Main/SOGo.m +++ b/Main/SOGo.m @@ -511,7 +511,13 @@ static BOOL debugLeaks; NSRange r; r = [path rangeOfString: @"/"]; - username = [path substringWithRange: NSMakeRange(0, r.location)]; + + // We handle /sogo1/Calendar/.../ and "sogo1" as paths + if (r.length) + username = [path substringWithRange: NSMakeRange(0, r.location)]; + else + username = path; + requestCount = [cache requestCountForLogin: username]; if (requestCount)