- Fix waring about openssl CA's bundle path
This commit is contained in:
Hadi Nategh 2017-08-28 16:24:56 +02:00
parent 4b9b5aa7e4
commit 74bfeade9e

View File

@ -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);
}