Commit 7ddff2f3 authored by David Lawrence's avatar David Lawrence

Bug 652663 - When using bug_format_comment hook some replacements can happen…

Bug 652663 - When using bug_format_comment hook some replacements can happen more than once causing broken links r/a=LpSolit
parent 2686b79f
...@@ -264,8 +264,10 @@ sub quoteUrls { ...@@ -264,8 +264,10 @@ sub quoteUrls {
~get_bug_link($1, $1) ~get_bug_link($1, $1)
~egmx; ~egmx;
# Now remove the encoding hacks # Now remove the encoding hacks in reverse order
$text =~ s/\0\0(\d+)\0\0/$things[$1]/eg; for (my $i = $#things; $i >= 0; $i--) {
$text =~ s/\0\0($i)\0\0/$things[$i]/eg;
}
$text =~ s/$chr1\0/\0/g; $text =~ s/$chr1\0/\0/g;
return $text; return $text;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment