From: Don Armstrong Date: Tue, 7 Aug 2007 04:02:28 +0000 (-0700) Subject: * Use the same regex in the bug info stanza for Forwarded: as used in the log X-Git-Tag: release/2.6.0~522^2~4 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4d83466ac45f3c92a3bd2f9e84b9f53c72ce13c3;p=debbugs.git * Use the same regex in the bug info stanza for Forwarded: as used in the log --- diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi index 4251fed9..856a35be 100755 --- a/cgi/bugreport.cgi +++ b/cgi/bugreport.cgi @@ -326,7 +326,9 @@ if (length($status{done})) { } if (length($status{forwarded})) { - push @descstates, "Forwarded to ".maybelink($status{forwarded}); + my $forward_link = $status{forwarded}; + $forward_link =~ s,((ftp|http|https)://[\S~-]+?/?)((\>\;)?[)]?[']?[:.\,]?(\s|$)),$1$3,go; + push @descstates, "Forwarded to $forward_link"; }