Skip to content

Commit

Permalink
Merge pull request #292 from cmu-sei/v8
Browse files Browse the repository at this point in the history
V8
  • Loading branch information
sei-dupdyke authored Mar 19, 2024
2 parents aefbd20 + 5b63f73 commit 9ac427f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Ghosts.Client/Handlers/Outlook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ private bool SendEmailViaOutlook(EmailConfiguration emailConfig)
//Add subject
if (!string.IsNullOrWhiteSpace(emailConfig.Subject))
{
mailItem.Subject = emailConfig.Subject;
mailItem.Subject = emailConfig.Subject.GetTextBetweenQuotes();
}

Log.Trace($"Setting message subject to: {mailItem.Subject}");
Expand Down
2 changes: 1 addition & 1 deletion src/Ghosts.Client/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("8.0.0.0")]
[assembly: AssemblyInformationalVersion("8.0.0.0")]
[assembly: AssemblyFileVersion("8.0.7.70")]
[assembly: AssemblyFileVersion("8.0.7.75")]
2 changes: 1 addition & 1 deletion src/Ghosts.Domain/Code/Helpers/StringExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static string GetTextBetweenQuotes(this string o)
{
var result = Regex.Match(o, "\"([^\"]*)\"").ToString();
if (!string.IsNullOrEmpty(result))
result = result.TrimStart('"').TrimEnd('"');
result = result.Trim().TrimStart('"').TrimEnd('"');
return result;
}

Expand Down

0 comments on commit 9ac427f

Please sign in to comment.