Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(Felamimail AttachmentCache) allow attachment ids with : char
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmhh committed Jul 26, 2022
1 parent 5f0e1f8 commit 6233066
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tine20/Felamimail/Model/AttachmentCache.php
Expand Up @@ -111,10 +111,7 @@ public function setId($_id)

protected function fillFromId(string $id)
{
if (substr_count($id, ':') !== 2) {
throw new Tinebase_Exception_UnexpectedValue('id does not contain exactly 2 ":": ' . $id);
}
[$model, $recordId, $partId] = explode(':', $id);
[$model, $recordId, $partId] = explode(':', $id, 3);
$this->{self::FLD_SOURCE_MODEL} = $model;
$this->{self::FLD_SOURCE_ID} = $recordId;
$this->{self::FLD_PART_ID} = $partId;
Expand Down

0 comments on commit 6233066

Please sign in to comment.