summaryrefslogtreecommitdiffstats
path: root/x11/kde4-runtime/files/patch-kioslave__bookmarks__kio_bookmarks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'x11/kde4-runtime/files/patch-kioslave__bookmarks__kio_bookmarks.cpp')
-rw-r--r--x11/kde4-runtime/files/patch-kioslave__bookmarks__kio_bookmarks.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/x11/kde4-runtime/files/patch-kioslave__bookmarks__kio_bookmarks.cpp b/x11/kde4-runtime/files/patch-kioslave__bookmarks__kio_bookmarks.cpp
new file mode 100644
index 0000000..7fb7b14
--- /dev/null
+++ b/x11/kde4-runtime/files/patch-kioslave__bookmarks__kio_bookmarks.cpp
@@ -0,0 +1,25 @@
+commit d68703900edc8416fbcd2550cd336cbbb76decb9
+Author: Martin Sandsmark <martin.sandsmark@kde.org>
+Date: Thu Nov 13 13:29:01 2014 +0100
+
+ Sanitize path
+
+--- kioslave/bookmarks/kio_bookmarks.cpp
++++ kioslave/bookmarks/kio_bookmarks.cpp
+@@ -22,6 +22,7 @@
+ #include <stdlib.h>
+
+ #include <qregexp.h>
++#include <qtextdocument.h>
+
+ #include <kapplication.h>
+ #include <kcmdlineargs.h>
+@@ -197,7 +198,7 @@ void BookmarksProtocol::get( const KUrl& url )
+ echoImage(regexp.cap(1), regexp.cap(2), url.queryItem("size"));
+ } else {
+ echoHead();
+- echo("<p class=\"message\">" + i18n("Wrong request: %1",path) + "</p>");
++ echo("<p class=\"message\">" + i18n("Bad request: %1", Qt::escape(Qt::escape(url.prettyUrl()))) + "</p>");
+ }
+ finished();
+ }
OpenPOWER on IntegriCloud