From: Martin Sandsmark Date: Thu, 13 Nov 2014 12:42:49 +0000 Subject: Sanitize path X-Git-Url: http://quickgit.kde.org/?p=kio-extras.git&a=commitdiff&h=13155c8eb71d1c946bea21c38ea0f8ca7c7013cd --- Sanitize path Reviewed at security@kde.org --- --- a/bookmarks/kio_bookmarks.cpp +++ b/bookmarks/kio_bookmarks.cpp @@ -22,6 +22,7 @@ #include #include +#include #include #include @@ -198,7 +199,7 @@ echoImage(regexp.cap(1), regexp.cap(2), QUrlQuery(url).queryItemValue("size")); } else { echoHead(); - echo("

" + i18n("Wrong request: %1",path) + "

"); + echo("

" + i18n("Wrong request: %1", Qt::escape(url.toDisplayString())) + "

"); } finished(); }