]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commit
ids.cgi: Add some more sanity checks when adding a new provider.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 14 Apr 2021 18:32:14 +0000 (20:32 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Tue, 3 Aug 2021 17:25:54 +0000 (19:25 +0200)
commit1935a92ca1a9193e38af5e39011087d193e5837b
treec44bc0915f0c1fa1b1afe50ff8f6f67e8bad7824
parent29f3ed292748fdd8a0b774bcdd618e2ff9dffc3e
ids.cgi: Add some more sanity checks when adding a new provider.

* Check if the system is online.
* Check if enough free disk space is available.
* Abort whith an error message if the ruleset could not be
  downloaded.

In error case the provider now will be removed again from the file which
keeps the configured providers. Sadly it needs to be added first because
otherwise the downloader could not read the required values from it.....

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi
langs/de/cgi-bin/de.pl
langs/en/cgi-bin/en.pl