[freeside-commits] branch FREESIDE_3_BRANCH updated. 26240874c78539a882db57782a0199a8eb92c1e0
Mark Wells
mark at 420.am
Tue Nov 3 13:15:47 PST 2015
The branch, FREESIDE_3_BRANCH has been updated
via 26240874c78539a882db57782a0199a8eb92c1e0 (commit)
from ab9786fe9ea49e7a00459da99f1b8dc1e2b023d3 (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 26240874c78539a882db57782a0199a8eb92c1e0
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