mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
* Addressbook: fix SMime/PGP public key import not containing a newline after the key
This commit is contained in:
parent
ec59013349
commit
a11b9a266b
@ -23,7 +23,7 @@ use EGroupware\Api\Acl;
|
||||
*/
|
||||
class addressbook_bo extends Api\Contacts
|
||||
{
|
||||
static public $pgp_key_regexp = '/-----BEGIN PGP PUBLIC KEY BLOCK-----.*-----END PGP PUBLIC KEY BLOCK-----\r?\n/s';
|
||||
static public $pgp_key_regexp = '/-----BEGIN PGP PUBLIC KEY BLOCK-----.*-----END PGP PUBLIC KEY BLOCK-----\r?\n?/s';
|
||||
|
||||
/**
|
||||
* Search addressbook for PGP public keys of given recipients
|
||||
|
@ -45,22 +45,22 @@ class Smime extends Horde_Crypt_Smime
|
||||
/**
|
||||
* SMIME public key regular expression
|
||||
*/
|
||||
static public $pubkey_regexp = '/-----BEGIN PUBLIC KEY-----.*-----END PUBLIC KEY-----\r?\n/s';
|
||||
static public $pubkey_regexp = '/-----BEGIN PUBLIC KEY-----.*-----END PUBLIC KEY-----\r?\n?/s';
|
||||
|
||||
/**
|
||||
* SMIME encrypted private key regular expresion
|
||||
*/
|
||||
static public $privkey_encrypted_regexp = '/-----BEGIN ENCRYPTED PRIVATE KEY-----.*-----END ENCRYPTED PRIVATE KEY-----\r?\n/s';
|
||||
static public $privkey_encrypted_regexp = '/-----BEGIN ENCRYPTED PRIVATE KEY-----.*-----END ENCRYPTED PRIVATE KEY-----\r?\n?/s';
|
||||
|
||||
/**
|
||||
* SMIME private key regular expression
|
||||
*/
|
||||
static public $privkey_regexp = '/-----BEGIN PRIVATE KEY-----.*-----END PRIVATE KEY-----\r?\n/s';
|
||||
static public $privkey_regexp = '/-----BEGIN PRIVATE KEY-----.*-----END PRIVATE KEY-----\r?\n?/s';
|
||||
|
||||
/**
|
||||
* SMIME certificate regular expression
|
||||
*/
|
||||
static public $certificate_regexp = '/-----BEGIN CERTIFICATE-----.*-----END CERTIFICATE-----\r?\n/s';
|
||||
static public $certificate_regexp = '/-----BEGIN CERTIFICATE-----.*-----END CERTIFICATE-----\r?\n?/s';
|
||||
|
||||
/**
|
||||
* Encryption type of sign
|
||||
|
Loading…
Reference in New Issue
Block a user