[freeside-commits]
freeside/httemplate/misc/process cancel_pkg.html, 1.2, 1.3
Ivan,,,
ivan at wavetail.420.am
Mon Oct 23 01:47:09 PDT 2006
- Previous message: [freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi
agent.cgi, 1.9, 1.10 cust_bill-logo.cgi, 1.3, 1.4 passwd.cgi,
1.2, 1.3 selfservice.cgi, 1.12, 1.13 signup.html, 1.6, 1.7
- Next message: [freeside-commits] freeside/FS/FS cust_main.pm,1.248,1.249
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/misc/process
In directory wavetail:/tmp/cvs-serv26099
Modified Files:
cancel_pkg.html
Log Message:
better error message if you don't enter a reason. FS::reason::check can untaint its data, and will allow punctuation in reasons
Index: cancel_pkg.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/process/cancel_pkg.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- cancel_pkg.html 23 Oct 2006 04:21:04 -0000 1.2
+++ cancel_pkg.html 23 Oct 2006 08:47:07 -0000 1.3
@@ -34,22 +34,16 @@
%$otaker = $FS::CurrentUser::CurrentUser->username
% if ($otaker eq "User, Legacy");
%
-%my $error;
+%my $error = '';
%if ($reasonnum == -1) {
-% #untaint new reason
-% my $nr = $cgi->param('newreasonnum');
-% $nr =~ /^([\w\s]+)$/ || die "Illegal new reason";
-% $nr = $1;
%
-% #untaint new reason type
-% my $nrtype = $cgi->param('newreasonnumT');
-% $nrtype =~ /^(\d+)$/ || die "Illegal new reason type";
-% $nrtype = $1;
+% $error = 'Enter a new reason (or select an existing oen)'
+% unless $cgi->param('newreasonnum') !~ /^\s*$/;
%
-% my $reason = new FS::reason({ 'reason_type' => $nrtype,
-% 'reason' => $nr,
+% my $reason = new FS::reason({ 'reason_type' => $cgi->param('newreasonnumT'),
+% 'reason' => $cgi->param('newreasonnum'),
% });
-% $error = $reason->insert;
+% $error ||= $reason->insert;
% $reasonnum = $reason->reasonnum
% unless $error;
%}
- Previous message: [freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi
agent.cgi, 1.9, 1.10 cust_bill-logo.cgi, 1.3, 1.4 passwd.cgi,
1.2, 1.3 selfservice.cgi, 1.12, 1.13 signup.html, 1.6, 1.7
- Next message: [freeside-commits] freeside/FS/FS cust_main.pm,1.248,1.249
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list