From 89cb60fe38a7962c876bce18368db90cedda84eb Mon Sep 17 00:00:00 2001 From: Matt Tyson Date: Tue, 11 Oct 2016 19:07:32 -0400 Subject: Bug 1306534 - Crash when pasting UTF8 text as an attachment r=dylan --- Bugzilla/Attachment.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm index 33183797b..5e25681c3 100644 --- a/Bugzilla/Attachment.pm +++ b/Bugzilla/Attachment.pm @@ -853,6 +853,7 @@ sub create { (id, thedata) VALUES ($attachid, ?)"); trick_taint($data); + utf8::encode($data); $sth->bind_param(1, $data, $dbh->BLOB_TYPE); $sth->execute(); -- cgit v1.2.1