[freeside-commits] freeside/httemplate/browse cust_main_county.cgi, 1.25, 1.26

Ivan,,, ivan at wavetail.420.am
Sun Dec 28 11:10:32 PST 2008


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

Modified Files:
	cust_main_county.cgi 
Log Message:
finish dealing with counties with spaces, etc., RT#4496

Index: cust_main_county.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/cust_main_county.cgi,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- cust_main_county.cgi	28 Dec 2008 18:59:49 -0000	1.25
+++ cust_main_county.cgi	28 Dec 2008 19:10:30 -0000	1.26
@@ -148,7 +148,11 @@
 $cgi->delete('state');
 
 my $county = '';
-if ( $country && $state && $cgi->param('county') =~ /^([\w \-\'\[\]]+)$/ ) {
+if ( $country && $state &&
+     $cgi->param('county') =~
+       /^([\w \!\@\#\$\%\&\(\)\-\+\;\:\'\"\,\.\?\/\=\[\]]+)$/
+   )
+{
   $county = $1;
   if ( $county eq '__NONE__' ) {
     $title = "No county, $title";



More information about the freeside-commits mailing list