]> git.donarmstrong.com Git - debbugs.git/commitdiff
* Use the same regex in the bug info stanza for Forwarded: as used in the log
authorDon Armstrong <don@donarmstrong.com>
Tue, 7 Aug 2007 04:02:28 +0000 (21:02 -0700)
committerDon Armstrong <don@donarmstrong.com>
Tue, 7 Aug 2007 04:02:28 +0000 (21:02 -0700)
cgi/bugreport.cgi

index 4251fed98cbdeb92190b6824735164089150859e..856a35be4e8c27c785a9ab0c55da7b433e9fa648 100755 (executable)
@@ -326,7 +326,9 @@ if (length($status{done})) {
 }
 
 if (length($status{forwarded})) {
-    push @descstates, "<strong>Forwarded</strong> to ".maybelink($status{forwarded});
+    my $forward_link = $status{forwarded};
+    $forward_link =~ s,((ftp|http|https)://[\S~-]+?/?)((\&gt\;)?[)]?[']?[:.\,]?(\s|$)),<a href=\"$1\">$1</a>$3,go;
+    push @descstates, "<strong>Forwarded</strong> to $forward_link";
 }