Skip to content

Commit

Permalink
Set PRODID when we create a vcard from roundcube data
Browse files Browse the repository at this point in the history
  • Loading branch information
mstilkerich committed Aug 15, 2022
1 parent 1179f37 commit 1a2cbb4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Version 4.4.3 (to 4.4.2)

- Properly set and interpret TYPE parameters, especially for TEL (Fixes #390)
- RCMCardDAV now sets the PRODID property when it creates or modifies a vcard

## Version 4.4.2 (to 4.4.1)

Expand Down
2 changes: 1 addition & 1 deletion carddav.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class carddav extends rcube_plugin
*
* During development, it is set to the last release and added the suffix +dev.
*/
private const PLUGIN_VERSION = 'v4.4.2+dev';
public const PLUGIN_VERSION = 'v4.4.2+dev';

/**
* Information about this plugin that is queried by roundcube.
Expand Down
2 changes: 2 additions & 0 deletions src/DataConversion.php
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,8 @@ public function fromRoundcube(array $save_data, ?VCard $vcard = null): VCard
$vcard = new VObject\Component\VCard(['VERSION' => '3.0']);
}

// set product
$vcard->PRODID = '-//MStilkerich//RCMCardDAV ' . carddav::PLUGIN_VERSION . '//EN';
// update revision
$vcard->REV = $this->dateTimeString();

Expand Down

0 comments on commit 1a2cbb4

Please sign in to comment.