mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 21:37:15 +08:00
15 lines
648 B
Diff
15 lines
648 B
Diff
--- a/khtml/khtml_part.cpp
|
|
+++ b/khtml/khtml_part.cpp
|
|
@@ -1804,7 +1804,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 );
|