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.sogomaint-2.0.2
parent
24e539526f
commit
a0b81f4473
|
@ -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"];
|
||||
|
|
Loading…
Reference in New Issue