[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.3/kdebase/workspace/plasma/applets/systemtray/core
From: Rob Scheepmaker <r.scheepmaker () student ! utwente ! nl>
Date: 2009-09-03 11:08:36
Message-ID: 1251976116.414389.10090.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1019343 by scheepmaker:
Properly escape URL's in the job completed widgets. Backported from r1019337.
M +5 -1 job.cpp
--- branches/KDE/4.3/kdebase/workspace/plasma/applets/systemtray/core/job.cpp #1019342:1019343
@@ -20,6 +20,7 @@
#include "job.h"
#include <QtCore/QTimer>
+#include <QTextDocument>
#include <KDebug>
#include <KUrl>
@@ -165,7 +166,10 @@
destinationString = location.prettyUrl();
}
- QString destinationLink = QString("<a href=\"%1\">%1</a>").arg(destinationString);
+ kDebug() << "href = " << location.url();
+ QString destinationLink = QString("<a href=\"%1\">%2</a>").arg(location.url())
+ .arg(Qt::escape(destinationString));
+
if (totalAmounts().value("files") > 1) {
return i18np("%1 file, to: %2", "%1 files, to: %2", totalAmounts().value("files"),
destinationLink);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic