summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Mailer.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm
index 1931a2ff9..69db9c557 100644
--- a/Bugzilla/Mailer.pm
+++ b/Bugzilla/Mailer.pm
@@ -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;
}