From: Stefan Schantl Date: Tue, 26 Apr 2022 03:24:47 +0000 (+0200) Subject: ids.cgi: Remove etag data when deleting a provider. X-Git-Tag: v2.27-core170~195^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a9e81ce7f999628536c5fa33928f3e79a7d84cc;p=ipfire-2.x.git ids.cgi: Remove etag data when deleting a provider. Otherwise the same provider could not be added again at a later time if the stored etag is still valid. In this case the server will not offer the rules and the provider could not be added. Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 3a0f1fc972..369bf02760 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -906,6 +906,9 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'ids apply'}) { # Drop the stored ruleset file. &IDS::drop_dl_rulesfile($provider); + # Remove may stored etag data. + &IDS::remove_from_etags($provider); + # Get the name of the provider rulessets include file. my $provider_used_rulefile = &IDS::get_provider_used_rulesfiles_file($provider);