From 4d83466ac45f3c92a3bd2f9e84b9f53c72ce13c3 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 6 Aug 2007 21:02:28 -0700 Subject: [PATCH] * Use the same regex in the bug info stanza for Forwarded: as used in the log --- cgi/bugreport.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi index 4251fed..856a35b 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"; } -- 2.39.2