mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
ids.cgi: Display return code on download error, when adding a new
provider. Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -755,8 +755,11 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'ids apply'}) {
|
||||
&working_notice("$Lang::tr{'ids working'}");
|
||||
|
||||
# Download the ruleset.
|
||||
if(&IDS::downloadruleset($provider)) {
|
||||
$errormessage = "$Lang::tr{'ids could not add provider'} - $Lang::tr{'ids unable to download the ruleset'}";
|
||||
my $return = &IDS::downloadruleset($provider);
|
||||
|
||||
# Check if the downloader returned a code.
|
||||
if ($return) {
|
||||
$errormessage = "$Lang::tr{'ids could not add provider'} - $Lang::tr{'ids unable to download the ruleset'}: $return";
|
||||
|
||||
# Call function to store the errormessage.
|
||||
&IDS::_store_error_message($errormessage);
|
||||
|
||||
Reference in New Issue
Block a user