case 4180
This commit is contained in:
@@ -62,4 +62,4 @@ using System.Runtime.InteropServices;
|
||||
[assembly: log4net.Config.XmlConfigurator(ConfigFile="Log4Net.config",Watch=true)]
|
||||
//[assembly: log4net.Config.XmlConfigurator(Watch=true)]
|
||||
[assembly: ComVisibleAttribute(false)]
|
||||
[assembly: AssemblyFileVersionAttribute("7.6.15.0")]
|
||||
[assembly: AssemblyFileVersionAttribute("7.6.16.0")]
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -64,4 +64,4 @@ using System.Security.Permissions;
|
||||
// Configure log4net using the .config file
|
||||
//[assembly: log4net.Config.XmlConfigurator(ConfigFile="Log4Net.config",Watch=true)]
|
||||
//[assembly: log4net.Config.XmlConfigurator( ConfigFile="Log4Net.config",Watch=true )]
|
||||
[assembly: AssemblyFileVersionAttribute("7.6.15.0")]
|
||||
[assembly: AssemblyFileVersionAttribute("7.6.16.0")]
|
||||
|
||||
@@ -4504,6 +4504,23 @@ namespace GZTW.AyaNova.BLL
|
||||
throw new System.IndexOutOfRangeException("ExtractString->Error: closing tag not found");
|
||||
return s.Substring(startIndex, endIndex - startIndex);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Replace bare linefeeds issue case 4180
|
||||
/// </summary>
|
||||
/// <param name="s"></param>
|
||||
/// <returns>string with any bare \n replaced with \r\n</returns>
|
||||
public static string ReplaceBareLineFeeds(string s)
|
||||
{
|
||||
//the string may and probably does already have \r\n in addition to bare line feeds
|
||||
//so replace those with bare linefeeds so it's *all* bare linefeeds then fix up
|
||||
return s.Replace("\r\n", "\n").Replace("\n", "\r\n");
|
||||
}
|
||||
#endregion misc string helpers
|
||||
|
||||
#region Regular expressions
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace GZTW.AyaNova.BLL
|
||||
|
||||
//email.SetFromMimeText(n.GetContentAsString);
|
||||
email.Mailer = "AyaNova service management software licensed to " + AyaBizUtils.REGTO;
|
||||
email.Body = sMessageFields[1];
|
||||
email.Body = AyaBizUtils.ReplaceBareLineFeeds(sMessageFields[1]);//case 4180
|
||||
email.Subject = sMessageFields[2];
|
||||
|
||||
//case 1601
|
||||
|
||||
@@ -85,7 +85,8 @@ namespace GZTW.AyaNova.BLL
|
||||
|
||||
sms.Login=GZTW.AyaNova.BLL.AyaBizUtils.GlobalSettings.NotifySMTPAccount;
|
||||
sms.Password=GZTW.AyaNova.BLL.AyaBizUtils.GlobalSettings.NotifySMTPPassword;
|
||||
sms.Message=info.Message;
|
||||
|
||||
sms.Message=AyaBizUtils.ReplaceBareLineFeeds(info.Message);//case 4180
|
||||
sms.Subject="";//info.Subject;
|
||||
sms.ToAddress=info.Address;
|
||||
sms.Deliver();
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace GZTW.AyaNova.BLL
|
||||
// Create a simple email.
|
||||
Chilkat.Email email = new Chilkat.Email();
|
||||
|
||||
email.Body = Message;
|
||||
email.Body = AyaBizUtils.ReplaceBareLineFeeds(Message);//case 4180
|
||||
email.Subject = Subject;
|
||||
|
||||
//case 1601
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace GZTW.AyaNova.BLL
|
||||
// Create a simple email.
|
||||
Chilkat.Email email = new Chilkat.Email();
|
||||
|
||||
email.Body = Message;
|
||||
email.Body = AyaBizUtils.ReplaceBareLineFeeds(Message);//case 4180
|
||||
email.Subject = Subject;
|
||||
|
||||
//case 1601
|
||||
|
||||
Reference in New Issue
Block a user