allow punctuation in tax name on XLS download of report, #33255
authorMark Wells <mark@freeside.biz>
Tue, 3 Nov 2015 21:14:24 +0000 (13:14 -0800)
committerMark Wells <mark@freeside.biz>
Tue, 3 Nov 2015 21:14:24 +0000 (13:14 -0800)
httemplate/search/report_tax-xls.cgi

index 07fcf7c..c914d5a 100755 (executable)
@@ -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";
 }