URL-clicking includes trailing no-break space

Bug #1013210 reported by Smylers on 2012-06-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-terminal (Ubuntu)
Undecided
Unassigned

Bug Description

The dingus URL-identification for ctrl-clicking on URLs will currently include a trailing no-break space (NBSP) character if there happens to be one following the URL. This breaks the URL from loading in, for example, Firefox.

For example, I'm reading an e-mail in Mutt (in Gnome Terminal) which includes “the www.directboatinsurance.com website”, where the character which appears as a space between “com” and “website” is actually an NBSP. (I don't know why; presumably something to do with how the sender's e-mail client formats text).

Moving the mouse over that domain name underlines from “www” to the NBSP inclusive, and ctrl-clicking on it sends the domain name plus NBSP to Firefox, which then fails to resolve the hostname until the NBSP is removed from the URL bar.

I don't think a valid URL would ever contain an NBSP character. Please can we trim URLs before them, rather than after?

Thanks.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers