From 16f1833e572297edd89faddb69364e09efecdfdb Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Sun, 1 Aug 2010 17:48:22 -0700 Subject: 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 --- Bugzilla/DB.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Bugzilla/DB.pm') diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm index 43fcd6e9a..11e124fda 100644 --- a/Bugzilla/DB.pm +++ b/Bugzilla/DB.pm @@ -94,6 +94,17 @@ use constant FULLTEXT_OR => ''; 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 ##################################################################### -- cgit v1.2.3-24-g4f1b