Skip to content

Commit

Permalink
Bug 1306534 - Crash when pasting UTF8 text as an attachment
Browse files Browse the repository at this point in the history
r=dylan
  • Loading branch information
mtyson01 authored and dylanwh committed Oct 11, 2016
1 parent b0f5a16 commit f1b9ed5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Bugzilla/Attachment.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit f1b9ed5

Please sign in to comment.