From: Frédéric Buclin Date: Thu, 4 Nov 2010 16:46:49 +0000 (+0100) Subject: Bug 474766: The [details] string is duplicated when replying to a comment containing... X-Git-Tag: bugzilla-4.0rc2~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29c5d9f68f9041bba905e68263fdbf34d63e35bc;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 83adbf4909..cc6329f205 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -226,7 +226,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;