]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
ipblocklist-functions.pl: Fix regex in downloader
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 14 Apr 2023 16:20:01 +0000 (18:20 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 3 Mar 2024 11:56:02 +0000 (12:56 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ipblocklist-functions.pl

index 28843c80087a4f87f959904a21a53308f2bce067..251d34865bbacd95911dd6ac16240e3945dcc26b 100644 (file)
@@ -160,7 +160,7 @@ sub download_blocklist ($) {
 
        # Convert the response into an array to allow
        # processing the items.
-       my @blocklist = split(/[\r\n]/, $response);
+       my @blocklist = split(/[\r\n]+/, $response);
 
        # Get the responsible parser for the current list.
        my $parser = $parsers{$IPblocklist::List::sources{$list}{'parser'}};