From b624d9d6a6c6c277ab10ab564986986a33e6b4e9 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 28 Jul 2009 08:03:46 -0700 Subject: [PATCH] Handle ' ending links in Debbugs::CGI::Bugreport (closes: #539020) --- Debbugs/CGI/Bugreport.pm | 2 +- debian/changelog | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Debbugs/CGI/Bugreport.pm b/Debbugs/CGI/Bugreport.pm index 57f8d8f..6986fbf 100644 --- a/Debbugs/CGI/Bugreport.pm +++ b/Debbugs/CGI/Bugreport.pm @@ -319,7 +319,7 @@ sub handle_record{ $output .= decode_rfc1522($record->{text}); # Link to forwarded http:// urls in the midst of the report # (even though these links already exist at the top) - $output =~ s,((?:ftp|http|https)://[\S~-]+?/?)([\)\'\:\.\,]?(?:\s|\.<|$)),$1$2,go; + $output =~ s,((?:ftp|http|https)://[\S~-]+?/?)((?:[\)\'\:\.\,]|\&\#39;)?(?:\s|\.<|$)),$1$2,go; # Add links to the cloned bugs $output =~ s{(Bug )(\d+)( cloned as bugs? )(\d+)(?:\-(\d+)|)}{$1.bug_links(bug=>$2).$3.bug_links(bug=>(defined $5)?[$4..$5]:$4)}eo; # Add links to merged bugs diff --git a/debian/changelog b/debian/changelog index c3adfb7..44cf90b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -254,6 +254,7 @@ debbugs (2.4.2~exp0) experimental; urgency=low * Allow trailinng periods after the control stop commands (closes: #517834) * Ditch extra blank lines (closes: #494843) + * Handle ' ending links in Debbugs::CGI::Bugreport (closes: #539020) -- Don Armstrong Sun, 26 Jul 2009 05:48:16 -0700 -- 2.39.2