From 1b546b88ed6a135a93497dbbbe1f7798678c4734 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Fri, 27 Oct 2023 09:53:33 +0200 Subject: [PATCH] Escape Subject when adding to history table --- App/EmailProfiler.Common/clsWorkEmail.vb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/EmailProfiler.Common/clsWorkEmail.vb b/App/EmailProfiler.Common/clsWorkEmail.vb index ad1a205..5768c8b 100644 --- a/App/EmailProfiler.Common/clsWorkEmail.vb +++ b/App/EmailProfiler.Common/clsWorkEmail.vb @@ -786,7 +786,7 @@ Public Class clsWorkEmail ) VALUES ( '{CurrentMailProcessName}', '{pCurrentMail.MessageId}', - '{pCurrentMail.SubjectOriginal}', + '{pCurrentMail.SubjectOriginal.EscapeForSQL()}', '{pCurrentMail.Mail.Date}', '{CURRENT_MAIL_BODY_ALL}', '{CURRENT_MAIL_BODY_ANSWER1}',