]> 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:43:19 +0000 (17:43 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 4 Nov 2010 16:43:19 +0000 (17:43 +0100)
r/a=mkanat

Bugzilla/Template.pm

index e2d5280e874714320d391f852985287949a2a637..45b61b0de937fd46cc2f06b505bb66b91743444a 100644 (file)
@@ -231,7 +231,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;