From: Frédéric Buclin Date: Thu, 4 Nov 2010 16:43:19 +0000 (+0100) Subject: Bug 474766: The [details] string is duplicated when replying to a comment containing... X-Git-Tag: bugzilla-4.1.1~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a56886c1198fdead99e1feced3c02b027bd5d5f0;p=thirdparty%2Fbugzilla.git Bug 474766: The [details] string is duplicated when replying to a comment containing a link to an attachment r/a=mkanat --- diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index e2d5280e87..45b61b0de9 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;