Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.0.0, 4.0.1, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.3.5, 4.4.0, 4.4.1, 4.4.2, 4.4.3, 4.5.0, 4.5.1, 4.5.2, 4.5.3, 4.6.0, 4.6.1, 4.6.2, 4.7.0
-
None
Description
When a mailto: URI is set on a QUrl, QUrl will not apply any IDN checks and transformations to the domain name in the email address.
In fact, QUrl doesn't do any kind of validity checking for mailto. The following is suggested:
- When parsing, if the scheme is "mailto", enable email address checking
- When setPath() / setEncodedPath() is called, if the scheme is "mailto", enable email address checking
- Changing to scheme to "mailto" should not trigger revalidation or any transformations done to the path.
- The IDN checks and canonicalisation should be applied to the domain portion of the URI
- encodedPath() should return the ACE form of the domain name
- path() should return the Unicode form of the domain name (if the TLD is whitelisted)