SA Bugzilla – Bug 6596
Text that looks like URL without a valid TLD is not parsed as a hot link
Last modified: 2019-08-03 14:12:37 UTC
A text string http://NO-TLD is not parsed as a URL by the code that is looking for links as text. We may want to recognize them and append a ".com" to form a URL to pass to deobfuscator and RBL code. This is a new issue extracted from bug 5780 comment 38 through bug 5780 comment 43
Is is a good idea to assume any TLD and append it? Seems like this could lead to abuse of innocent/good .com domains and FPs.
What do MUAs do with that? If major MUAs append .com and "just make it work" for the user, then maybe we should also do that.
Not all the world is .com, why not .cn than ? I think it is not useful, adding a .com tld to a domain does not necessarily "make it work". I tried a few MUA and they leave the url as-is (as they could work in local environments).
I vote -1 on fixing this. If it's an invalid url and our TLD list is accurate, then not parsing it seems accurate.
IMHO, if we keep our TLD list accurate it makes no sense to fix this it. -1 for me.
(In reply to Giovanni Bechis from comment #5) > IMHO, if we keep our TLD list accurate it makes no sense to fix this it. > -1 for me. Agreed. Closing as won't fix. bug 7165 is open for this purpose if someone can run it and figure out how to automated it.
Umm I'm reopening this, it's clear that while MUA itself might not append .com to the link, latest Thunbirdbird will linkify http://foobar and _Firefox_ changes it to http://www.foobar.com when "foobar" doesn't resolve. Rewriting 4.0.0 parser right now, so maybe it should be implemented.
(In reply to Henrik Krohns from comment #7) I agree with re-opening it given that new behaviour in Thunderbird
Here is current Firefox fixup code https://hg.mozilla.org/mozilla-central/file/tip/docshell/base/nsDefaultURIFixup.cpp Will try to emulate that.. atleast this from quick glance - only for http:// - not if user/password - not if port != 80 - not for "localhost"
I'm also +1 for reopening.
Part of this update. Sending spamassassin-3.4/UPGRADE Sending spamassassin-3.4/lib/Mail/SpamAssassin/DnsResolver.pm Sending spamassassin-3.4/lib/Mail/SpamAssassin/PerMsgStatus.pm Sending spamassassin-3.4/lib/Mail/SpamAssassin/RegistryBoundaries.pm Sending spamassassin-3.4/lib/Mail/SpamAssassin/Util.pm Sending spamassassin-3.4/t/uri.t Sending spamassassin-3.4/t/uri_text.t Sending trunk/UPGRADE Sending trunk/lib/Mail/SpamAssassin/DnsResolver.pm Sending trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm Sending trunk/lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm Sending trunk/lib/Mail/SpamAssassin/RegistryBoundaries.pm Sending trunk/lib/Mail/SpamAssassin/Util.pm Sending trunk/t/uri.t Sending trunk/t/uri_text.t Transmitting file data ...............done Committing transaction... Committed revision 1864336.