]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 583645: Make $dbh->quote always detaint its output, even on DBDs that
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Mon, 2 Aug 2010 00:48:22 +0000 (17:48 -0700)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Mon, 2 Aug 2010 00:48:22 +0000 (17:48 -0700)
don't normally detaint output from $dbh->quote.
r=LpSolit, a=LpSolit

Bugzilla/DB.pm

index 43fcd6e9a180430b24081d969cf5bbdb7ad33c46..11e124fdacb8b4542cf0c67ee1a2969be400b99e 100644 (file)
@@ -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
 #####################################################################