From ffc62c667c327a491e794ce6751a440b824319c0 Mon Sep 17 00:00:00 2001 From: jeff Date: Sun, 12 Jul 2009 13:28:28 +0000 Subject: stop gratuitous hash manipulatoin during enum untaint --- FS/FS/Record.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ''; } } -- cgit v1.2.1