diff options
author | ivan <ivan> | 2007-01-21 09:13:49 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-01-21 09:13:49 +0000 |
commit | 75d0fe9902d6fa2d5623648c13ba3676fe462810 (patch) | |
tree | a9b7376aeec2664c2ce5513da5a9172b7ae9dc29 /httemplate/search | |
parent | 28d0e1291b3119b0bef1e1e887676f2c29e35c25 (diff) |
trim leading & trailing whitespace from service searches
Diffstat (limited to 'httemplate/search')
-rw-r--r-- | httemplate/search/cust_svc.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/httemplate/search/cust_svc.html b/httemplate/search/cust_svc.html index 1ab5ed171..127e7abfb 100644 --- a/httemplate/search/cust_svc.html +++ b/httemplate/search/cust_svc.html @@ -39,6 +39,7 @@ my $orderby = 'ORDER BY svcnum'; #has to be ordered by something if ( length( $cgi->param('search_svc') ) ) { my $string = $cgi->param('search_svc'); + $string =~ s/(^\s+|\s+$)//; #trim leading & trailing whitespace # implement fuzzy searching in subclasses too at some point? # service searching maybe shouldn't be fuzzy... |