mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-14 00:14:33 +00:00
b=348740
- escape single quotes in criteria values
This commit is contained in:
parent
644fc157c9
commit
b04de022a6
@ -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') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user