]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
ipblocklist-functions.pl: Fix return codes of the downloader
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 14 Apr 2023 16:14:43 +0000 (18:14 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 14 Apr 2023 16:14:43 +0000 (18:14 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ipblocklist-functions.pl

index 31810b64ee1209b04d3f5932dea6bd4a9cfd2905..28843c80087a4f87f959904a21a53308f2bce067 100644 (file)
@@ -153,10 +153,10 @@ sub download_blocklist ($) {
        my $response = &General::downloader(%settings);
 
        # Abort if the response is empty
-       return "empty list" unless ($response);
+       return "empty_list" unless ($response);
 
        # Return return codes from downloader.
-       return "not modified" if ($response eq "not modified");
+       return "not_modified" if ($response eq "not_modified");
 
        # Convert the response into an array to allow
        # processing the items.
@@ -166,7 +166,7 @@ sub download_blocklist ($) {
        my $parser = $parsers{$IPblocklist::List::sources{$list}{'parser'}};
 
        # Return if no parser could be omited.
-       return "no parser" unless ($parser);
+       return "no_parser" unless ($parser);
 
        # Get the name of the cached blocklist.
        my $file = &get_cached_blocklist_file($list);