After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 256142 - URL parser doesn't properly parse trailing . in hostnames
URL parser doesn't properly parse trailing . in hostnames
Status: RESOLVED FIXED
Product: GtkHtml
Classification: Other
Component: Parsing
unspecified
Other All
: Normal enhancement
: Future
Assigned To: evolution-mail-maintainers
Evolution QA team
: 248950 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-03-28 23:01 UTC by Jeremy Kitchen
Modified: 2006-02-22 10:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (1.55 KB, patch)
2006-02-10 07:06 UTC, Rohini
none Details | Review

Description Jeremy Kitchen 2004-03-28 23:01:37 UTC
Description of Problem:
the URL parser doesn't properly parse trailing . in hostname part of URL

Steps to reproduce the problem:
1. send or receive a plaintext email with a url formatted as such:
http://scriptkitchen.com./qmail/

Actual Results:
the above link will only go to http://scriptkitchen.com

Expected Results:
it should parse out the full URL http://scriptkitchen.com./qmail/

How often does this happen? 
every time, from what I've seen.

Additional Information:
from http://www.faqs.org/rfcs/rfc2396.html section 3.2.2:
hostname      = *( domainlabel "." ) toplabel [ "." ]
and may be followed by a single "."

Thanks dobey for making me go find the RFC that describes this :)

It's probably not a very common issue in the wild, however it does appear
to be functioning improperly, and should probably evetually be fixed.

It probably affects other versions, however the only version I have on hand
is 1.4.5 running on gentoo linux, so I only posted what I could confirm.
Comment 1 André Klapper 2005-10-08 23:47:51 UTC
this is gtkhtml, not evolution
Comment 2 André Klapper 2005-10-08 23:48:09 UTC
*** Bug 248950 has been marked as a duplicate of this bug. ***
Comment 3 Rohini 2006-02-10 07:06:45 UTC
Created attachment 59058 [details] [review]
patch