[freeside-commits] branch master updated. da046e5f2ceae7df8ea20cc0185d2c63d71a3daa
Mark Wells
mark at 420.am
Tue Nov 3 13:15:48 PST 2015
The branch, master has been updated
via da046e5f2ceae7df8ea20cc0185d2c63d71a3daa (commit)
from 3a742395d79d0d6712e5111320c4780fd172b870 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit da046e5f2ceae7df8ea20cc0185d2c63d71a3daa
Author: Mark Wells <mark at freeside.biz>
Date: Tue Nov 3 13:14:24 2015 -0800
allow punctuation in tax name on XLS download of report, #33255
diff --git a/httemplate/search/report_tax-xls.cgi b/httemplate/search/report_tax-xls.cgi
index 07fcf7c..c914d5a 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";
}
-----------------------------------------------------------------------
Summary of changes:
httemplate/search/report_tax-xls.cgi | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list