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

Bugzilla/Template.pm

index 83adbf49098eec2dd502a33ec494a0b8e29e0a21..cc6329f20524b0d5ed504dacf2b86b56f66c331e 100644 (file)
@@ -226,7 +226,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;