diff options
author | Matt Tyson <mtyson@redhat.com> | 2016-10-12 01:07:32 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2016-10-12 01:07:32 +0200 |
commit | f1b9ed5d96a4738471559c9a275eabc4333d74f4 (patch) | |
tree | 453fba92c9a8e0d0ef48b77a0b435a01f9adae8a | |
parent | b0f5a16ece2ae97d5ebec0c36aed4f965b162398 (diff) | |
download | bugzilla-f1b9ed5d96a4738471559c9a275eabc4333d74f4.tar.gz bugzilla-f1b9ed5d96a4738471559c9a275eabc4333d74f4.tar.xz |
Bug 1306534 - Crash when pasting UTF8 text as an attachment
r=dylan
-rw-r--r-- | Bugzilla/Attachment.pm | 1 |
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(); |