]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
validate certificates in ids.cgi
authorPeter Müller <peter.mueller@link38.eu>
Sun, 17 Jun 2018 16:58:32 +0000 (18:58 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Jun 2018 17:20:09 +0000 (18:20 +0100)
Fixes #11770.

Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ids.cgi

index 17cb23292da418f08281b186dd2659983060a022..9863251e2d8817f74211383b844f170a200af636 100644 (file)
@@ -692,8 +692,8 @@ sub downloadrulesfile {
        }
 
        if ($peer) {
-               system("wget -r --proxy=on --proxy-user=$proxysettings{'UPSTREAM_USER'} --proxy-passwd=$proxysettings{'UPSTREAM_PASSWORD'} -e http_proxy=http://$peer:$peerport/ -o /var/tmp/log --no-check-certificate --output-document=/var/tmp/snortrules.tar.gz $url");
+               system("wget -r --proxy=on --proxy-user=$proxysettings{'UPSTREAM_USER'} --proxy-passwd=$proxysettings{'UPSTREAM_PASSWORD'} -e http_proxy=http://$peer:$peerport/ -o /var/tmp/log --output-document=/var/tmp/snortrules.tar.gz $url");
        } else {
-               system("wget -r --no-check-certificate -o /var/tmp/log --output-document=/var/tmp/snortrules.tar.gz $url");
+               system("wget -r -o /var/tmp/log --output-document=/var/tmp/snortrules.tar.gz $url");
        }
 }