Commit f1b9ed5d 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 b0f5a16e
......@@ -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();
......
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