From: bbaetz%student.usyd.edu.au <> Date: Thu, 15 Aug 2002 06:30:40 +0000 (+0000) Subject: Bug 151619 - Problem with the regex in checksetup.pl to find dependancies X-Git-Tag: bugzilla-2.17.1~196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=684246432c854ffab436304470545f1da46eae07;p=thirdparty%2Fbugzilla.git Bug 151619 - Problem with the regex in checksetup.pl to find dependancies r=jouni, joel --- diff --git a/checksetup.pl b/checksetup.pl index 7c6b7d3996..4cf164f09b 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -2782,7 +2782,8 @@ if (!($sth->fetchrow_arrayref()->[0])) { foreach $key (keys(%dupes)) { - $dupes{$key} =~ s/.*\*\*\* This bug has been marked as a duplicate of (\d{1,5}) \*\*\*.*?/$1/sm; + $dupes{$key} =~ /^.*\*\*\* This bug has been marked as a duplicate of (\d+) \*\*\*$/ms; + $dupes{$key} = $1; $dbh->do("INSERT INTO duplicates VALUES('$dupes{$key}', '$key')"); # BugItsADupeOf Dupe }