(fix) handle "username" as path
parent
510d568cb1
commit
f08c718c00
|
@ -511,7 +511,13 @@ static BOOL debugLeaks;
|
|||
NSRange r;
|
||||
|
||||
r = [path rangeOfString: @"/"];
|
||||
|
||||
// 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)
|
||||
|
|
Loading…
Reference in New Issue