mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-09 04:25:38 +00:00
b=324648
- search parameters are being double-escaped due to the interaction of quotemeta and qq{}. Remove quotemeta and just escape single quotes instead.
This commit is contained in:
parent
c54fc0453e
commit
4e18fa9df7
@ -315,7 +315,7 @@ sub processLoginForm {
|
||||
$userobj->bugzilla_uid("0");
|
||||
$userobj->realname($realname);
|
||||
$userobj->disabled(0);
|
||||
$userobj->is_admin(0);
|
||||
# $userobj->is_admin(0);
|
||||
$userobj->irc_nickname($nickname);
|
||||
$userobj->update();
|
||||
|
||||
|
@ -184,7 +184,7 @@ sub getTestResults($\@\@$) {
|
||||
my $limit = 'LIMIT ';
|
||||
|
||||
foreach my $criterion (@$where_criteria) {
|
||||
$criterion->{'value'} = quotemeta( $criterion->{'value'} );
|
||||
$criterion->{'value'} =~ s/'/\'/g;
|
||||
if ($criterion->{'field'} eq 'branch') {
|
||||
$where .= " AND b.name='" . $criterion->{'value'} . "'";
|
||||
} elsif ($criterion->{'field'} eq 'locale') {
|
||||
@ -280,7 +280,7 @@ sub getTestResults($\@\@$) {
|
||||
}
|
||||
|
||||
my $sql = "$select $from $where $order_by $limit";
|
||||
|
||||
#print $sql,"<br/>\n";
|
||||
Litmus::DB::Testresult->set_sql(TestResults => qq{
|
||||
$sql
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user