diff --git a/Main/SOGo.m b/Main/SOGo.m index 815c9ea5d..014fe2208 100644 --- a/Main/SOGo.m +++ b/Main/SOGo.m @@ -27,6 +27,7 @@ #import #import +#import #import #import #import @@ -418,8 +419,12 @@ static BOOL debugLeaks; "GET" if no method was provided in the query path. */ if ([_key length] > 0 && ![_key isEqualToString:@"favicon.ico"]) - obj = [self lookupUser: _key inContext: _ctx]; - } + { + obj = [self lookupUser: _key inContext: _ctx]; + if (!obj) + obj = [self lookupUser: @"anonymous" inContext: _ctx]; + } + } } else obj = nil;