From f1b9ed5d96a4738471559c9a275eabc4333d74f4 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 ec318b021..5a7a50e59 100644 --- a/Bugzilla/Attachment.pm +++ b/Bugzilla/Attachment.pm @@ -891,6 +891,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.3-24-g4f1b