Commit 12ca1832 authored by Matt Tyson's avatar Matt Tyson Committed by Frédéric Buclin

Bug 1186700: Inserting data into the mail_staging table fails on PostgreSQL due…

Bug 1186700: Inserting data into the mail_staging table fails on PostgreSQL due to unspecified BLOB type r=gerv a=sgreen
parent 61a971cd
......@@ -122,7 +122,10 @@ sub MessageToMTA {
# The e-mail string may contain tainted values.
my $string = $email->as_string;
trick_taint($string);
$dbh->do("INSERT INTO mail_staging (message) VALUES(?)", undef, $string);
my $sth = $dbh->prepare("INSERT INTO mail_staging (message) VALUES (?)");
$sth->bind_param(1, $string, $dbh->BLOB_TYPE);
$sth->execute;
return;
}
......
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