mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-17 07:33:57 +00:00
(fix) handle "username" as path
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user