Disallow multiple field to keep PCI scanners happy https://github.com/webmin/webmin/issues/833

This commit is contained in:
Jamie Cameron
2018-03-08 21:50:39 -08:00
parent 229e2a55fe
commit 16445b60e2

View File

@@ -8,7 +8,7 @@ use WebminCore;
$pragma_no_cache = 1;
#$ENV{'MINISERV_INTERNAL'} || die "Can only be called by miniserv.pl";
&init_config();
&ReadParse();
&ReadParse(undef, undef, undef, 2);
if ($gconfig{'loginbanner'} && $ENV{'HTTP_COOKIE'} !~ /banner=1/ &&
!$in{'logout'} && !$in{'failed'} && !$in{'timed_out'}) {
# Show pre-login HTML page