diff options
author | mark <mark> | 2010-11-04 05:57:00 +0000 |
---|---|---|
committer | mark <mark> | 2010-11-04 05:57:00 +0000 |
commit | bd35baff8b7b5dcdd44d14a1139ef4d48009274c (patch) | |
tree | a727a7ef414a242fad7ddb3cd1eda6533f97f14b /httemplate/search/svc_acct.cgi | |
parent | 2ecef68b926eae756524a564bd0986da7b56109f (diff) |
clean up postgres-isms, RT#10324
Diffstat (limited to 'httemplate/search/svc_acct.cgi')
-rwxr-xr-x | httemplate/search/svc_acct.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/httemplate/search/svc_acct.cgi b/httemplate/search/svc_acct.cgi index 1407d9e30..c3ddd660b 100755 --- a/httemplate/search/svc_acct.cgi +++ b/httemplate/search/svc_acct.cgi @@ -262,13 +262,13 @@ if ( $cgi->param('magic') =~ /^(all|unlinked)$/ ) { } $cgi->param('username') =~ /^([\w\-\.\&]+)$/; #untaint username_text - my $username = $1; + my $username = lc($1); - push @username_sql, "username ILIKE '$username'" + push @username_sql, "LOWER(username) LIKE '$username'" if $username_type{'Exact'} || $username_type{'Fuzzy'}; - push @username_sql, "username ILIKE '\%$username\%'" + push @username_sql, "LOWER(username) LIKE '\%$username\%'" if $username_type{'Substring'} || $username_type{'All'}; |