summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjeff <jeff>2009-07-12 13:28:28 +0000
committerjeff <jeff>2009-07-12 13:28:28 +0000
commitffc62c667c327a491e794ce6751a440b824319c0 (patch)
tree526d4da752f22e5f13d8fba322188818e26fe768
parent14d07f48fe5fb1e4497dccdf747a119cc982e182 (diff)
stop gratuitous hash manipulatoin during enum untaint
-rw-r--r--FS/FS/Record.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm
index 3f065b8d5..03d62cb22 100644
--- a/FS/FS/Record.pm
+++ b/FS/FS/Record.pm
@@ -1823,7 +1823,7 @@ sub ut_enum {
my( $self, $field, $choices ) = @_;
foreach my $choice ( @$choices ) {
if ( $self->getfield($field) eq $choice ) {
- $self->setfield($choice);
+ $self->setfield($field, $choice);
return '';
}
}