forked from extern/egroupware
S/MIME:
- Fix waring about openssl CA's bundle path
This commit is contained in:
parent
4b9b5aa7e4
commit
74bfeade9e
@ -193,9 +193,10 @@ class Smime extends Horde_Crypt_Smime
|
||||
{
|
||||
$cert_locations = openssl_get_cert_locations();
|
||||
$certs = array();
|
||||
foreach (scandir($cert_locations['default_cert_dir']) as &$file)
|
||||
foreach (scandir($cert_locations['default_cert_dir']) as $file)
|
||||
{
|
||||
if (!is_dir($cert_locations['default_cert_dir'].'/'.$file)) $certs[]= $cert_locations['default_cert_dir'].'/'.$file;
|
||||
if ($file !== '..' && $file !=='.'
|
||||
&& !is_dir($cert_locations['default_cert_dir'].'/'.$file)) $certs[]= $cert_locations['default_cert_dir'].'/'.$file;
|
||||
}
|
||||
return $this->verify($message, $certs);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user