Bug 474766: The [details] string is duplicated when replying to a comment containing a link to an attachment

r/a=mkanat


git-svn-id: svn://10.0.0.236/branches/BUGZILLA-4_0-BRANCH@261524 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org 2010-11-04 17:09:26 +00:00
parent c23304ec28
commit 9e4f5b4a62
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
7474
7475

View 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;