diff options
author | Mark Wells <mark@freeside.biz> | 2015-11-03 13:14:24 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-11-03 13:15:08 -0800 |
commit | 26240874c78539a882db57782a0199a8eb92c1e0 (patch) | |
tree | 44c0456972771a73b99a686e611b2fefc029fecf | |
parent | ab9786fe9ea49e7a00459da99f1b8dc1e2b023d3 (diff) |
allow punctuation in tax name on XLS download of report, #33255
-rwxr-xr-x | httemplate/search/report_tax-xls.cgi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/httemplate/search/report_tax-xls.cgi b/httemplate/search/report_tax-xls.cgi index 07fcf7cfe..c914d5adc 100755 --- a/httemplate/search/report_tax-xls.cgi +++ b/httemplate/search/report_tax-xls.cgi @@ -24,8 +24,9 @@ if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) { $agentname = $agent->agentname; } -if ( $cgi->param('taxname') =~ /^([\w ]+)$/ ) { - $params{taxname} = $1; +# allow anything in here; FS::Report::Tax will treat it as unsafe +if ( length($cgi->param('taxname')) ) { + $params{taxname} = $cgi->param('taxname'); } else { die "taxname required"; } |