projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
untaint svcnum & domsvc
[freeside.git]
/
FS
/
FS
/
svc_acct.pm
diff --git
a/FS/FS/svc_acct.pm
b/FS/FS/svc_acct.pm
index
83263b0
..
9f95f40
100644
(file)
--- a/
FS/FS/svc_acct.pm
+++ b/
FS/FS/svc_acct.pm
@@
-381,6
+381,12
@@
Sets any fixed values; see L<FS::part_svc>.
sub check {
my $self = shift;
sub check {
my $self = shift;
+ my $error =
+ $self->ut_numbern('svcnum')
+ || $self->ut_number('domsvc')
+ ;
+ return $error if $error;
+
my($recref) = $self->hashref;
my $x = $self->setfixed;
my($recref) = $self->hashref;
my $x = $self->setfixed;
@@
-416,8
+422,8
@@
sub check {
return "Only root can have uid 0"
if $recref->{uid} == 0 && $recref->{username} ne 'root';
return "Only root can have uid 0"
if $recref->{uid} == 0 && $recref->{username} ne 'root';
-
my($error
);
- return $error if $error
=$self->ut_textn('finger')
;
+
$error = $self->ut_textn('finger'
);
+ return $error if $error;
$recref->{dir} =~ /^([\/\w\-]*)$/
or return "Illegal directory";
$recref->{dir} =~ /^([\/\w\-]*)$/
or return "Illegal directory";
@@
-552,7
+558,7
@@
sub radius_check {
=head1 VERSION
=head1 VERSION
-$Id: svc_acct.pm,v 1.2
0 2001-08-12 19:41:24 jeff
Exp $
+$Id: svc_acct.pm,v 1.2
1 2001-08-13 00:21:54 ivan
Exp $
=head1 BUGS
=head1 BUGS