mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
avoid .files/smime-pubkey.crt file does not exist or can not be created!
This commit is contained in:
parent
77503e3b89
commit
7ca4b49878
@ -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