diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-12-21 10:10:57 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-12-21 10:10:57 +0000 |
commit | 65832f7671704e83d3f82c6b127c09e17d4de658 (patch) | |
tree | f223a17678623250f802a2205ea545cdd74a7430 /perllib/FixMyStreet/DB/Result/Comment.pm | |
parent | 39116ace1ea45d88b94dff7835b686c1d6451842 (diff) |
Make sure serialized string is UTF-8 encoded.
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Comment.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Comment.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Comment.pm b/perllib/FixMyStreet/DB/Result/Comment.pm index 8c9fea282..2098a6495 100644 --- a/perllib/FixMyStreet/DB/Result/Comment.pm +++ b/perllib/FixMyStreet/DB/Result/Comment.pm @@ -91,6 +91,7 @@ __PACKAGE__->filter_column( my $self = shift; my $ser = shift; return undef unless defined $ser; + utf8::encode($ser) if utf8::is_utf8($ser); my $h = new IO::String($ser); return RABX::wire_rd($h); }, |