Commit 89cb60fe authored by Matt Tyson's avatar Matt Tyson Committed by Dylan William Hardison

Bug 1306534 - Crash when pasting UTF8 text as an attachment

r=dylan
parent 0a2c9378
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment