From 6f2feff9fc65b65502467045a2e1f94fd0d04149 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sun, 26 Oct 2008 12:00:23 -0700 Subject: [PATCH] Change how maybelink links links (closes: #501757) --- Debbugs/CGI.pm | 5 +++++ debian/changelog | 1 + 2 files changed, 6 insertions(+) diff --git a/Debbugs/CGI.pm b/Debbugs/CGI.pm index cceeb36c..3cd4348c 100644 --- a/Debbugs/CGI.pm +++ b/Debbugs/CGI.pm @@ -530,6 +530,11 @@ the split links with commas and spaces. sub maybelink { my ($links,$regex,$join) = @_; + if (not defined $regex and not defined $join) { + $links =~ s{((?:ftp|http|https)://[\S~-]+?/?)([\)\'\:\.\,]?(?:\s|\.<|$))} + {q().html_escape($1).q().$2}geimo; + return $links; + } $join = ' ' if not defined $join; my @return; my @segments; diff --git a/debian/changelog b/debian/changelog index 7e3d7685..88e1a611 100644 --- a/debian/changelog +++ b/debian/changelog @@ -226,6 +226,7 @@ debbugs (2.4.2) UNRELEASED; urgency=low (closes: #499997) * Comment out CGI::Alert use for the time being (closes: #499681) * No longer hard-code paths in age-1 (closes: #499682) + * Change how maybelink links links (closes: #501757) -- Colin Watson Fri, 20 Jun 2003 18:57:25 +0100 -- 2.39.5