diff --git a/webtools/mozbot/mozbot.pl b/webtools/mozbot/mozbot.pl index 9444e1aedc0d..e32d7f3bac4b 100755 --- a/webtools/mozbot/mozbot.pl +++ b/webtools/mozbot/mozbot.pl @@ -845,8 +845,8 @@ sub rdfchannel { return if (!$output); my $channelpart = ""; - if ($output =~ s@.*@@si) { - $channelpart = $&; + if ($output =~ m@(.*)@si) { + $channelpart = $1; } $output =~ s@.*@@si; @@ -860,8 +860,8 @@ sub rdfchannel { } my @list; - while ($output =~ m@(.+?)@sig) { - push(@list, $1); + while ($output =~ m@(.*?)(.+?)(.*?)@sig) { + push(@list, $2); } $rdf_items{$url} = \@list;