From a0b81f44730287da66279dec56a377ea827747f5 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Thu, 18 Dec 2008 22:11:13 +0000 Subject: [PATCH] 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 --- UI/MainUI/SOGoRootPage.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/MainUI/SOGoRootPage.m b/UI/MainUI/SOGoRootPage.m index ca8028b91..8e090c94b 100644 --- a/UI/MainUI/SOGoRootPage.m +++ b/UI/MainUI/SOGoRootPage.m @@ -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"];