Changelog linkifying of URL's end-of-string characters too strict

Bug #329172 reported by Thomas E Jenkins
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Software Updater
New
Undecided
Unassigned

Bug Description

The search and link logic in on_insert_text in ChangelogViewer treats ":", "!", and "," characters as terminators for a linkable text. This makes sense when searching for bug numbers and the like, however these characters should be acceptable for vanilla URL's found by searching for "http://". This creates broken links for downloading changelogs for packages such as compiz that have ":" characters in their version string. The search and link already does not terminate on the "." character when building a vanilla URL link. However I think it should only terminate on whitespace or bracket-like characters not punctuation.

Attached is a diff off of the main bzr branch. It removes punctuation from the list of terminators for "http://" searches and removes the "." vs. other-punctuation special casing as well. Seemed too small a change to upload and register a branch.

On a related note should "https://" searches be added as well?

Revision history for this message
Thomas E Jenkins (thomas-jenkins) wrote :
Revision history for this message
CrYpTiC_MauleR (crypticmauler) wrote :

I can confirm this occurring as well with update-manager 1:0.98.1.1

>>On a related note should "https://" searches be added as well?
I agree, why use HTTP when all it does is redirect to HTTPS, have the URLs as HTTPS to begin with, will be more efficient in my opinion.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.