]> git.ipfire.org Git - ipfire-2.x.git/commit
ids-functions.pl: Introduce filesize check for downloader
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 18 Dec 2018 13:16:13 +0000 (14:16 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Tue, 18 Dec 2018 13:16:13 +0000 (14:16 +0100)
commit96da5803a77ac8cae85fc8bc37e2153a19b5ab26
tree7366463aed5c40740562cb0e0520deb839e58bd7
parent1201c1e74695fffeae36ba8a8a6adfe422a53ddd
ids-functions.pl: Introduce filesize check for downloader

The downloader now requests the html header for the rulestarball
and obtain the size of the file bevore downloading it.

After success the size of the downloaded file will be compared with
the requested one before. If they do not match, an error will be gained.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ids-functions.pl