From 3fd8baa75b954c325df492b7b4da11ea8d4e174f Mon Sep 17 00:00:00 2001 From: Till Adam Date: Fri, 3 Dec 2004 10:22:17 +0000 Subject: [PATCH] Escape message subjects before showing them in the status bar. BUG: 94243 svn path=/trunk/kdepim/; revision=368045 --- imapjob.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/imapjob.cpp b/imapjob.cpp index 7cdc2457e..1d14bba8e 100644 --- a/imapjob.cpp +++ b/imapjob.cpp @@ -40,6 +40,7 @@ #include "progressmanager.h" using KPIM::ProgressManager; +#include #include #include #include @@ -293,11 +294,12 @@ void ImapJob::slotGetNextMessage() // kdDebug(5006) << "ImapJob::slotGetNextMessage - retrieve " << url.path() << endl; // protect the message, otherwise we'll get crashes afterwards msg->setTransferInProgress( true ); + const QString escapedSubject = QStyleSheet::escape( msg->subject() ); jd.progressItem = ProgressManager::createProgressItem( mParentProgressItem, "ImapJobDownloading"+ProgressManager::getUniqueID(), i18n("Downloading message data"), - i18n("Message with subject: ") + msg->subject(), + i18n("Message with subject: ") + escapedSubject, true, account->useSSL() || account->useTLS() ); connect ( jd.progressItem, SIGNAL( progressItemCanceled( KPIM::ProgressItem*)),