Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.8.0, 5.9.0 Beta 2
-
None
-
Archlinux, icu 58.2, gcc 6.3.1
-
b4a78bca9169776aec847c949caecc3a810856b3 9e2c6899e0a07edf525945a182d2537086441268)
Description
With the domain http://www.xn--80ak6aa92e.com (which is a proof-of-concept for using Unicode homographs for phishing - but I'll open a separate issue for that), showing the host in its original encoded form fails.
This example:
#include <QUrl> #include <QDebug> int main(int argc, char *argv[]) { QUrl url("http://www.xn--80ak6aa92e.com"); qDebug() << url.toDisplayString(); qDebug() << url.toEncoded(); qDebug() << url.host(); qDebug() << url.host(QUrl::EncodeUnicode); return 0; }
prints:
"http://www.аррӏе.com" "http://www..com" "www.аррӏе.com" "www..com"
Attachments
Issue Links
- relates to
-
QTBUG-85371 Update QUrl to use UTS #46
- Closed