Escape message subjects before showing them in the status bar.

BUG: 94243

svn path=/trunk/kdepim/; revision=368045
wilder-work
Till Adam 22 years ago
parent be1b1406db
commit 3fd8baa75b
  1. 4
      imapjob.cpp

@ -40,6 +40,7 @@
#include "progressmanager.h"
using KPIM::ProgressManager;
#include <qstylesheet.h>
#include <kio/scheduler.h>
#include <kdebug.h>
#include <klocale.h>
@ -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*)),

Loading…
Cancel
Save