Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix storing X-ANNIVERSARY date in vCard format (#1488527)

  • Loading branch information...
commit 2c48c19387dad1a85f6735848ea9542be9d33413 1 parent a2ec2eb
@alecpl alecpl authored
Showing with 4 additions and 2 deletions.
  1. +1 −0  CHANGELOG
  2. +3 −2 program/include/rcube_vcard.php
View
1  CHANGELOG
@@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
+- Fix storing X-ANNIVERSARY date in vCard format (#1488527)
- Update to Mail_Mime-1.8.5 (#1488521)
- Fix XSS vulnerability in message subject handling using Larry skin (#1488519)
- Fix handling of links with various URI schemes e.g. "skype:" (#1488106)
View
5 program/include/rcube_vcard.php
@@ -315,8 +315,9 @@ public function set($field, $value, $type = 'HOME')
break;
case 'birthday':
- if ($val = rcube_strtotime($value))
- $this->raw['BDAY'][] = array(0 => date('Y-m-d', $val), 'value' => array('date'));
+ case 'anniversary':
+ if (($val = rcube_strtotime($value)) && ($fn = self::$fieldmap[$field]))
+ $this->raw[$fn][] = array(0 => date('Y-m-d', $val), 'value' => array('date'));
break;
case 'address':
Please sign in to comment.
Something went wrong with that request. Please try again.