From a87c276b6b691204a64771cd267e502eb21c6883 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 3a89fd799..9c0c18876 100644 --- a/Main/SOGo.m +++ b/Main/SOGo.m @@ -462,7 +462,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)