mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
vulnerabilities.cgi: Simplify regexes
We can do the split in one. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
2f34103d47
commit
a96bcf413a
@@ -233,15 +233,11 @@ sub check_status($) {
|
||||
my $status = <FILE>;
|
||||
close(FILE);
|
||||
|
||||
if ($status =~ /^(Vulnerable): (.*)$/) {
|
||||
return ($1, $2);
|
||||
}
|
||||
|
||||
if ($status =~ /^(Mitigation): (.*vulnerable.*)$/) {
|
||||
return ("Mitigation-SMT", $2);
|
||||
}
|
||||
|
||||
if ($status =~ /^(Mitigation): (.*)$/) {
|
||||
if ($status =~ /^(Vulnerable|Mitigation): (.*)$/) {
|
||||
return ($1, $2);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user