]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 151619 - Problem with the regex in checksetup.pl to find dependancies
authorbbaetz%student.usyd.edu.au <>
Thu, 15 Aug 2002 06:32:04 +0000 (06:32 +0000)
committerbbaetz%student.usyd.edu.au <>
Thu, 15 Aug 2002 06:32:04 +0000 (06:32 +0000)
r=jouni, joel

checksetup.pl

index 8c5b7ea1ffed2a3310fc18d12751d4e8fa9dd106..4d3c1e15879cf632f39ae12a92e862a6d5354baf 100755 (executable)
@@ -2722,7 +2722,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
         }