- escape single quotes in criteria values
This commit is contained in:
ccooper%deadsquid.com 2006-08-15 19:27:09 +00:00
parent 644fc157c9
commit b04de022a6

View File

@ -177,7 +177,7 @@ sub getTestResults($\@\@$) {
my $limit = 'LIMIT ';
foreach my $criterion (@$where_criteria) {
$criterion->{'value'} =~ s/'/\'/g;
$criterion->{'value'} =~ s/'/\\\'/g;
if ($criterion->{'field'} eq 'branch') {
$where .= " AND b.name='" . $criterion->{'value'} . "'";
} elsif ($criterion->{'field'} eq 'locale') {