From a56886c1198fdead99e1feced3c02b027bd5d5f0 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Thu, 4 Nov 2010 17:43:19 +0100 Subject: Bug 474766: The [details] string is duplicated when replying to a comment containing a link to an attachment r/a=mkanat --- Bugzilla/Template.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/Template.pm') diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index e2d5280e8..45b61b0de 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -231,7 +231,7 @@ sub quoteUrls { ~$1$2~igx; # attachment links - $text =~ s~\b(attachment\s*\#?\s*(\d+)) + $text =~ s~\b(attachment\s*\#?\s*(\d+)(?:\s+\[details\])?) ~($things[$count++] = get_attachment_link($2, $1)) && ("\0\0" . ($count-1) . "\0\0") ~egmxi; -- cgit v1.2.3-24-g4f1b