[freeside-commits] freeside/httemplate/search svc_acct.cgi, 1.62, 1.63

Mark Wells mark at wavetail.420.am
Wed Nov 3 22:57:02 PDT 2010


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv27552/httemplate/search

Modified Files:
	svc_acct.cgi 
Log Message:
clean up postgres-isms, RT#10324

Index: svc_acct.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/svc_acct.cgi,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -w -d -r1.62 -r1.63
--- svc_acct.cgi	22 May 2010 20:00:28 -0000	1.62
+++ svc_acct.cgi	4 Nov 2010 05:57:00 -0000	1.63
@@ -262,13 +262,13 @@
   }
 
   $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'};
 



More information about the freeside-commits mailing list