Skip to content

Commit

Permalink
Trim the incoming activesync memo's description field.
Browse files Browse the repository at this point in the history
The field is technically unlimited, but Mnemo's storage
backend may not be. Limit to a reasonable 255. This field
is normally taken from the first 64 characters of the
memo's text.
  • Loading branch information
mrubinsk committed Jul 13, 2015
1 parent 0c839d3 commit 4dfa0dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mnemo/lib/Api.php
Expand Up @@ -791,7 +791,7 @@ public function replace($uid, $content, $contentType)
break;

case 'activesync':
$storage->modify($memo['memo_id'], $content->subject, $content->body->data, $content->categories);
$storage->modify($memo['memo_id'], Horde_String::substr($content->subject, 0, 255), $content->body->data, $content->categories);
break;

default:
Expand Down

0 comments on commit 4dfa0dc

Please sign in to comment.