summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-08-02 02:48:22 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-08-02 02:48:22 +0200
commit16f1833e572297edd89faddb69364e09efecdfdb (patch)
tree3b3829dd49028df012fe9b4d325168bde9d77415 /Bugzilla/DB.pm
parentbb18f8a6d560fa141f812dddcf6f6d8fe8b49dbb (diff)
downloadbugzilla-16f1833e572297edd89faddb69364e09efecdfdb.tar.gz
bugzilla-16f1833e572297edd89faddb69364e09efecdfdb.tar.xz
Bug 583645: Make $dbh->quote always detaint its output, even on DBDs that
don't normally detaint output from $dbh->quote. r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/DB.pm')
-rw-r--r--Bugzilla/DB.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm
index 43fcd6e9a..11e124fda 100644
--- a/Bugzilla/DB.pm
+++ b/Bugzilla/DB.pm
@@ -95,6 +95,17 @@ use constant WORD_START => '(^|[^[:alnum:]])';
use constant WORD_END => '($|[^[:alnum:]])';
#####################################################################
+# Overridden Superclass Methods
+#####################################################################
+
+sub quote {
+ my $self = shift;
+ my $retval = $self->SUPER::quote(@_);
+ trick_taint($retval) if defined $retval;
+ return $retval;
+}
+
+#####################################################################
# Connection Methods
#####################################################################