Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ActionStreams::Event::build_results did not check to make sure that t…

…he identifier was less than or equal to 200 characters in length. I added two minor fixes to address that.
  • Loading branch information...
commit 9f73868423239bb0c672d6236452387d3cdfa3a3 1 parent 037b016
@mikert mikert authored markpasc committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/ActionStreams/lib/ActionStreams/Event.pm
View
4 plugins/ActionStreams/lib/ActionStreams/Event.pm
@@ -433,7 +433,7 @@ sub build_results {
$identifier = "$identifier";
($event) = $class->search({
author_id => $author->id,
- identifier => $identifier,
+ identifier => substr($identifier, 0, 200),
});
}
@@ -449,7 +449,7 @@ sub build_results {
my $tags = delete $item->{tags};
$event->set_values({
author_id => $author->id,
- identifier => $identifier,
+ identifier => substr($identifier, 0, 200),
%$item,
});
$event->tags(@$tags) if $tags && @$tags;
Please sign in to comment.
Something went wrong with that request. Please try again.