Commit 76dd91d8 authored by gerv%gerv.net's avatar gerv%gerv.net

Made dupe table populating code not break on multi-line dupe comments. Thanks to…

Made dupe table populating code not break on multi-line dupe comments. Thanks to Alex Melnick <alex@get.topica.com>. No bug number.
parent 8e459806
...@@ -1960,7 +1960,7 @@ if (!($sth->fetchrow_arrayref()->[0])) { ...@@ -1960,7 +1960,7 @@ if (!($sth->fetchrow_arrayref()->[0])) {
foreach $key (keys(%dupes)) foreach $key (keys(%dupes))
{ {
$dupes{$key} =~ s/.*This bug has been marked as a duplicate of (\d{1,5}).*/$1/; $dupes{$key} =~ s/.*This bug has been marked as a duplicate of (\d{1,5}).*/$1/sm;
$dbh->do("INSERT INTO duplicates VALUES('$dupes{$key}', '$key')"); $dbh->do("INSERT INTO duplicates VALUES('$dupes{$key}', '$key')");
# BugItsADupeOf Dupe # BugItsADupeOf Dupe
} }
......
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