[freeside-commits] branch master updated. d5b8de340fed6080ca521844131f78336b491cd9
Christopher Burger
burgerc at freeside.biz
Tue Feb 19 12:58:17 PST 2019
The branch, master has been updated
via d5b8de340fed6080ca521844131f78336b491cd9 (commit)
from a7a22257d456394125eed32f8261c75a7f393ec2 (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 d5b8de340fed6080ca521844131f78336b491cd9
Author: Christopher Burger <burgerc at freeside.biz>
Date: Tue Feb 19 15:57:51 2019 -0500
RT# 82092 - added field validation
diff --git a/httemplate/edit/process/part_virtual_field.html b/httemplate/edit/process/part_virtual_field.html
index 6a8008db7..97be7e65e 100644
--- a/httemplate/edit/process/part_virtual_field.html
+++ b/httemplate/edit/process/part_virtual_field.html
@@ -43,7 +43,9 @@
my $act = 'add';
## make cgi->param("name") lowercase
-$cgi->param('name' => lc $cgi->param('name'));
+my $vcf_name = $cgi->param('name');
+$vcf_name =~ s/\s/_/g; $vcf_name =~ s/[^A-Za-z0-9\-_]//g;
+$cgi->param('name' => lc $vcf_name);
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
-----------------------------------------------------------------------
Summary of changes:
httemplate/edit/process/part_virtual_field.html | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list