Fixed:
Could not add contacts to a distribution lists Create mailbox: room and equipment showed as numbers Create Hosting Space: alignment of the hostname textbox Webpointers: blank hostname did not register as dns alias Webpublishing: generation of user name, username was not showing domain part BackupWizard: ensured progress bar is at 100% when task is completed Change mailbox plan did not update the size indicator setup instruction tab is shown when there is no setup template
This commit is contained in:
parent
bc0d70d1a4
commit
448429a5d2
13 changed files with 80 additions and 50 deletions
|
@ -91,10 +91,24 @@ namespace WebsitePanel.EnterpriseServer
|
|||
return (string[])list.ToArray(typeof(string));
|
||||
}
|
||||
|
||||
|
||||
public static string ReplaceStringVariable(string str, string variable, string value)
|
||||
{
|
||||
if (String.IsNullOrEmpty(str) || String.IsNullOrEmpty(value))
|
||||
return str;
|
||||
return ReplaceStringVariable(str, variable, value, false);
|
||||
}
|
||||
|
||||
public static string ReplaceStringVariable(string str, string variable, string value, bool allowEmptyValue)
|
||||
{
|
||||
if (allowEmptyValue)
|
||||
{
|
||||
if (String.IsNullOrEmpty(str)) return str;
|
||||
if (String.IsNullOrEmpty(value)) return string.Empty;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (String.IsNullOrEmpty(str) || String.IsNullOrEmpty(value))
|
||||
return str;
|
||||
}
|
||||
|
||||
Regex re = new Regex("\\[" + variable + "\\]+", RegexOptions.IgnoreCase);
|
||||
return re.Replace(str, value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue