]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 474766: The [details] string is duplicated when replying to a comment containing...
authorFrédéric Buclin <LpSolit@gmail.com>
Thu, 4 Nov 2010 16:48:50 +0000 (17:48 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 4 Nov 2010 16:48:50 +0000 (17:48 +0100)
r/a=mkanat

Bugzilla/Template.pm

index ad81d5e44b1d0af5c2d5b32cffedadcc25c16cc7..47004a2086e5cb20263ee6b19b871f74d02dd640 100644 (file)
@@ -225,7 +225,7 @@ sub quoteUrls {
               ~<a href=\"mailto:$2\">$1$2</a>~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;