X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fbrowse%2Fcust_main_county.cgi;h=34f1000f36e02f32f3e7c0e5c98c9715fce0f50b;hp=256c51d4b229cbb4a5b2a13eaade843a12ce5253;hb=2ab9b9a5c4d0ef093f0d8bef8627b568d6760995;hpb=0cc06d0142a93722c14da37369ad9745c2d0e571 diff --git a/httemplate/browse/cust_main_county.cgi b/httemplate/browse/cust_main_county.cgi index 256c51d4b..34f1000f3 100755 --- a/httemplate/browse/cust_main_county.cgi +++ b/httemplate/browse/cust_main_county.cgi @@ -175,9 +175,9 @@ $cgi->param('dummy', 1); 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;