summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2008-12-28 18:59:50 +0000
committerivan <ivan>2008-12-28 18:59:50 +0000
commitfb6e445f073e885001c5d84b89521b53056f6e24 (patch)
tree3828ff10ef0a0d9f0fbe765d63f7ead7400b8260
parent35736d62fa7a0bfaa521149a7f82f3aedbd20c8e (diff)
deal with counties with spaces, etc., RT#4496
-rwxr-xr-xhttemplate/browse/cust_main_county.cgi6
1 files changed, 3 insertions, 3 deletions
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;