aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Contact.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-12-21 10:10:57 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-12-21 10:10:57 +0000
commit65832f7671704e83d3f82c6b127c09e17d4de658 (patch)
treef223a17678623250f802a2205ea545cdd74a7430 /perllib/FixMyStreet/DB/Result/Contact.pm
parent39116ace1ea45d88b94dff7835b686c1d6451842 (diff)
Make sure serialized string is UTF-8 encoded.
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Contact.pm')
-rw-r--r--perllib/FixMyStreet/DB/Result/Contact.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Contact.pm b/perllib/FixMyStreet/DB/Result/Contact.pm
index b9bfd8610..551bcd019 100644
--- a/perllib/FixMyStreet/DB/Result/Contact.pm
+++ b/perllib/FixMyStreet/DB/Result/Contact.pm
@@ -66,6 +66,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);
},