ids.cgi: Remove newly added provider if the rules could not be

downloaded.

When adding a new provider and in case the rules file or tarball can not
be downloaded, the provider remains as configured.

To avoid that, the provider needs to be removed again.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2022-03-26 12:26:35 +01:00
parent 8114440752
commit fa7663a1b5

View File

@@ -805,6 +805,9 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'ids apply'}) {
# Perform a reload of the page.
&reload();
} else {
# Remove the configured provider again.
&remove_provider($id);
}
}