mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 19:05:25 +00:00
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
This commit is contained in:
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user