summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-11-04 17:43:19 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2010-11-04 17:43:19 +0100
commita56886c1198fdead99e1feced3c02b027bd5d5f0 (patch)
tree2e77cbbc7c7ea5f3fc9d839bde41d1dbee699d52 /Bugzilla
parent476aa64420a21efc15d50857c2ebbad3fb5de6db (diff)
downloadbugzilla-a56886c1198fdead99e1feced3c02b027bd5d5f0.tar.gz
bugzilla-a56886c1198fdead99e1feced3c02b027bd5d5f0.tar.xz
Bug 474766: The [details] string is duplicated when replying to a comment containing a link to an attachment
r/a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Template.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index e2d5280e8..45b61b0de 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -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;