[freeside-commits] freeside/httemplate/browse cust_main_county.cgi, 1.16.2.8, 1.16.2.9
Ivan,,,
ivan at wavetail.420.am
Sun Dec 28 10:59:52 PST 2008
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv6575
Modified Files:
Tag: FREESIDE_1_7_BRANCH
cust_main_county.cgi
Log Message:
deal 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.16.2.8
retrieving revision 1.16.2.9
diff -u -d -r1.16.2.8 -r1.16.2.9
--- cust_main_county.cgi 28 Dec 2008 18:52:47 -0000 1.16.2.8
+++ cust_main_county.cgi 28 Dec 2008 18:59:50 -0000 1.16.2.9
@@ -175,9 +175,9 @@
my $filter_change =
"window.location = '". $cgi->self_url.
- ";country=' + document.getElementById('country').options[document.getElementById('country').selectedIndex].value + ".
- "';state=' + document.getElementById('state').options[document.getElementById('state').selectedIndex].value +".
- "';county=' + document.getElementById('county').options[document.getElementById('county').selectedIndex].value;";
+ ";country=' + encodeURIComponent( document.getElementById('country').options[document.getElementById('country').selectedIndex].value ) + ".
+ "';state=' + encodeURIComponent( document.getElementById('state').options[document.getElementById('state').selectedIndex].value ) +".
+ "';county=' + encodeURIComponent( document.getElementById('county').options[document.getElementById('county').selectedIndex].value );";
#restore this so pagination works
$cgi->param('country', $country) if $country;
More information about the freeside-commits
mailing list