Permalink
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...
1 parent 037b016 commit 9f73868423239bb0c672d6236452387d3cdfa3a3 @MikeThomsen MikeThomsen committed with markpasc Mar 20, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;

0 comments on commit 9f73868

Please sign in to comment.