diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-08-02 02:48:22 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-08-02 02:48:22 +0200 |
commit | 16f1833e572297edd89faddb69364e09efecdfdb (patch) | |
tree | 3b3829dd49028df012fe9b4d325168bde9d77415 /Bugzilla | |
parent | bb18f8a6d560fa141f812dddcf6f6d8fe8b49dbb (diff) | |
download | bugzilla-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')
-rw-r--r-- | Bugzilla/DB.pm | 11 |
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 ##################################################################### |