From da296209083012c687a352d05ef36a59926a5b59 Mon Sep 17 00:00:00 2001 From: robvde Date: Mon, 28 Oct 2013 23:08:02 +0400 Subject: [PATCH] fixed wsp-10195 Exchange 2013 - User display names with the | char --- .../ExchangeServer/UserControls/MailboxSelector.ascx | 2 +- .../ExchangeServer/UserControls/MailboxSelector.ascx.cs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/MailboxSelector.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/MailboxSelector.ascx index 44b0e2d7..e5fc9507 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/MailboxSelector.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/MailboxSelector.ascx @@ -57,7 +57,7 @@ diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/MailboxSelector.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/MailboxSelector.ascx.cs index 655d8c20..8e4eb3c2 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/MailboxSelector.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/MailboxSelector.ascx.cs @@ -31,6 +31,7 @@ using System.Collections.Generic; using System.Web.UI; using System.Web.UI.WebControls; using WebsitePanel.Providers.HostedSolution; +using System.Text.RegularExpressions; namespace WebsitePanel.Portal.ExchangeServer.UserControls { @@ -218,7 +219,8 @@ namespace WebsitePanel.Portal.ExchangeServer.UserControls { if (e.CommandName == "SelectAccount") { - string[] parts = e.CommandArgument.ToString().Split('|'); + + string[] parts = e.CommandArgument.ToString().Split('^'); ExchangeAccount account = new ExchangeAccount(); account.AccountName = parts[0]; account.DisplayName = parts[1];