From b04de022a6d40762cd10698976a9c36f9f85d11f Mon Sep 17 00:00:00 2001 From: "ccooper%deadsquid.com" Date: Tue, 15 Aug 2006 19:27:09 +0000 Subject: [PATCH] b=348740 - escape single quotes in criteria values --- webtools/litmus/Litmus/DB/Testresult.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webtools/litmus/Litmus/DB/Testresult.pm b/webtools/litmus/Litmus/DB/Testresult.pm index c9a89658e82b..55a9fc225a3e 100755 --- a/webtools/litmus/Litmus/DB/Testresult.pm +++ b/webtools/litmus/Litmus/DB/Testresult.pm @@ -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') {