Bug 379195

Summary: Konversation can't handle IDN urls
Product: [Applications] konversation Reporter: bugs5.kde.org
Component: generalAssignee: Konversation Developers <konversation-devel>
Status: RESOLVED NOT A BUG    
Severity: normal CC: peter.simonsson
Priority: NOR    
Version First Reported In: 1.6   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description bugs5.kde.org 2017-04-25 13:53:29 UTC
Well, I just read an article about IDN urls and how they are used for phishing. One of the examples given was https://www.xn--80ak6aa92e.com/ (not apple) which shows in some browsers as apple.com.

Anway, when I paste that url in Konversation and click on it to open it, an error message pops up:

Malformed URL
Invalid hostname (contains invalid characters); source was "https://www..com/"; scheme = "https", host = "", path = "/"


The URL is correct but it seems Konversation can't handle IDN urls properly.
Comment 1 Peter Simonsson 2017-04-25 15:21:21 UTC
So far it seems the problem is QUrl::toEncoded() not returning the punycoded url
Comment 2 Peter Simonsson 2017-04-25 16:08:36 UTC
Seems it's some form of phishing protection in QUrl that kicks in as other punycode urls works fine. For example http://xn--6kry05bl4a.no works fine. So I'll close this one as phishing isn't really a good usecase. ;)