mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
avoid .files/smime-pubkey.crt file does not exist or can not be created!
This commit is contained in:
parent
63fddef20b
commit
06413e1506
@ -346,7 +346,8 @@ class addressbook_bo extends Api\Contacts
|
||||
$file = Api\Contacts::FILES_SMIME_PUBKEY;
|
||||
}
|
||||
$matches = null;
|
||||
if (($content = @file_get_contents(Api\Link::vfs_path('addressbook', $contact['id'], $file))) &&
|
||||
if (file_exists($path = Api\Link::vfs_path('addressbook', $contact['id'], $file)) &&
|
||||
($content = file_get_contents($path)) &&
|
||||
preg_match($key_regexp, $content, $matches) ||
|
||||
preg_match($key_regexp, $contact['pubkey'], $matches))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user