(fix) avoid broken redirects on sessions expiration

This commit is contained in:
Ludovic Marcotte
2016-04-11 14:53:17 -04:00
parent e88ce682f3
commit adc227a7eb
2 changed files with 8 additions and 1 deletions
+5 -1
View File
@@ -466,8 +466,12 @@
- (NSString *) userIdentification
{
NSString *v;
/* The "identification" term is used in the human sense here. */
return [[context activeUser] cn];
v = [[context activeUser] cn];
return (v ? v : @"");
}
- (NSString *) userEmail
+3
View File
@@ -364,6 +364,9 @@ static SoProduct *commonProduct = nil;
baseURL = [[self clientObject] baseURLInContext: context];
if (!baseURL)
baseURL = @"/SOGo/so/";
if ([baseURL hasSuffix: [NSString stringWithFormat: @"%@/", [[self parent] modulePath]]])
return baseURL;