mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add validation
This commit is contained in:
parent
571f89fad5
commit
b6dd249684
@ -43,10 +43,13 @@ function & lookup_ca($refid) {
|
||||
function & lookup_cert($refid) {
|
||||
global $config;
|
||||
|
||||
foreach ($config['system']['cert'] as & $cert)
|
||||
if ($cert['refid'] == $refid)
|
||||
return $cert;
|
||||
|
||||
if(is_array($config['system']['cert'])) {
|
||||
foreach ($config['system']['cert'] as & $cert) {
|
||||
if ($cert['refid'] == $refid) {
|
||||
return $cert;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user