diff options
Diffstat (limited to 'kde-base/kdelibs/files/kdelibs-4.5.5-cve20111168.patch')
-rw-r--r-- | kde-base/kdelibs/files/kdelibs-4.5.5-cve20111168.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kde-base/kdelibs/files/kdelibs-4.5.5-cve20111168.patch b/kde-base/kdelibs/files/kdelibs-4.5.5-cve20111168.patch new file mode 100644 index 000000000000..356f30a61046 --- /dev/null +++ b/kde-base/kdelibs/files/kdelibs-4.5.5-cve20111168.patch @@ -0,0 +1,14 @@ +--- a/khtml/khtml_part.cpp ++++ b/khtml/khtml_part.cpp +@@ -1803,7 +1803,10 @@ void KHTMLPart::htmlError( int errorCode + stream >> errorName >> techName >> description >> causes >> solutions; + + QString url, protocol, datetime; +- url = Qt::escape( reqUrl.prettyUrl() ); ++ ++ // This is somewhat confusing, but we have to escape the externally- ++ // controlled URL twice: once for i18n, and once for HTML. ++ url = Qt::escape( Qt::escape( reqUrl.prettyUrl() ) ); + protocol = reqUrl.protocol(); + datetime = KGlobal::locale()->formatDateTime( QDateTime::currentDateTime(), + KLocale::LongDate ); |