aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorMatt Tyson <mtyson@redhat.com>2016-10-11 19:07:32 -0400
committerDylan William Hardison <dylan@hardison.net>2016-10-11 19:08:48 -0400
commit89cb60fe38a7962c876bce18368db90cedda84eb (patch)
tree5c23ccf14e9a5ef9fb76f6736c9c4d2cb07c5a39 /Bugzilla
parent0a2c9378582443bf62911a34706dd571bf2faad7 (diff)
downloadbugs-89cb60fe38a7962c876bce18368db90cedda84eb.tar
bugs-89cb60fe38a7962c876bce18368db90cedda84eb.tar.gz
bugs-89cb60fe38a7962c876bce18368db90cedda84eb.tar.bz2
bugs-89cb60fe38a7962c876bce18368db90cedda84eb.tar.xz
bugs-89cb60fe38a7962c876bce18368db90cedda84eb.zip
Bug 1306534 - Crash when pasting UTF8 text as an attachment
r=dylan
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Attachment.pm1
1 files changed, 1 insertions, 0 deletions
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();