diff --git a/Main/SOGo.m b/Main/SOGo.m index cd77c8c04..f129c26fb 100644 --- a/Main/SOGo.m +++ b/Main/SOGo.m @@ -35,6 +35,7 @@ #import #import +#import #import #import #import @@ -369,8 +370,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;