We make sure the 'selected' language is supported.

Monotone-Parent: 99f71142b4c9049e7cba05c730fa70b7c121288f
Monotone-Revision: 0187913e6e236a3a8a3a4cf66bf61a25d3cde321

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2008-12-18T22:11:13
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Ludovic Marcotte 2008-12-18 22:11:13 +00:00
parent 24e539526f
commit a0b81f4473
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ static NSArray *supportedLanguages = nil;
[authCookie setPath: @"/"];
[response addCookie: authCookie];
if (language)
if (language && [supportedLanguages containsObject: language])
{
user = [SOGoUser userWithLogin: userName roles: nil];
[[user userDefaults] setObject: language forKey: @"Language"];