From fa7663a1b594dcfd4bf542eb34a0869d5280e38f Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sat, 26 Mar 2022 12:26:35 +0100 Subject: [PATCH] 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 --- html/cgi-bin/ids.cgi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 0907ba15ac..07fcae9e3e 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -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); } } -- 2.39.2