summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Tyson <mtyson@redhat.com>2016-10-12 01:07:32 +0200
committerDylan William Hardison <dylan@hardison.net>2016-10-12 01:07:32 +0200
commitf1b9ed5d96a4738471559c9a275eabc4333d74f4 (patch)
tree453fba92c9a8e0d0ef48b77a0b435a01f9adae8a
parentb0f5a16ece2ae97d5ebec0c36aed4f965b162398 (diff)
downloadbugzilla-f1b9ed5d96a4738471559c9a275eabc4333d74f4.tar.gz
bugzilla-f1b9ed5d96a4738471559c9a275eabc4333d74f4.tar.xz
Bug 1306534 - Crash when pasting UTF8 text as an attachment
r=dylan
-rw-r--r--Bugzilla/Attachment.pm1
1 files changed, 1 insertions, 0 deletions
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();