summaryrefslogtreecommitdiff
path: root/plugins/libkolab/lib/kolab_storage_cache_contact.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-10-07 10:12:23 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-10-07 10:12:23 (GMT)
commit20a731c54057c766644cda1681381b5178e9731e (patch)
tree1cfa79fa22ff9365d52a223b02b7494ba7ac7dc4 /plugins/libkolab/lib/kolab_storage_cache_contact.php
parentb72709a5cf0bf80eb4ca34d1eb5daea9765e7e80 (diff)
downloadroundcubemail-plugins-kolab-20a731c54057c766644cda1681381b5178e9731e.tar.gz
Minor code improvements
Diffstat (limited to 'plugins/libkolab/lib/kolab_storage_cache_contact.php')
-rw-r--r--plugins/libkolab/lib/kolab_storage_cache_contact.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/libkolab/lib/kolab_storage_cache_contact.php b/plugins/libkolab/lib/kolab_storage_cache_contact.php
index 3d1ecf0..763e9f7 100644
--- a/plugins/libkolab/lib/kolab_storage_cache_contact.php
+++ b/plugins/libkolab/lib/kolab_storage_cache_contact.php
@@ -24,6 +24,11 @@
class kolab_storage_cache_contact extends kolab_storage_cache
{
protected $extra_cols = array('type');
+ protected $binary_items = array(
+ 'photo' => '|<photo><uri>[^;]+;base64,([^<]+)</uri></photo>|i',
+ 'pgppublickey' => '|<key><uri>date:application/pgp-keys;base64,([^<]+)</uri></photo>|i',
+ 'pkcs7publickey' => '|<key><uri>date:application/pkcs7-mime;base64,([^<]+)</uri></photo>|i',
+ );
/**
* Helper method to convert the given Kolab object into a dataset to be written to cache