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