From 27af526f59996d1f1cb8f4181d4e320020c98062 Mon Sep 17 00:00:00 2001 From: jeff Date: Sun, 12 Jul 2009 13:27:07 +0000 Subject: [PATCH] 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 3e3af524c..be29b5c8a 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -2342,7 +2342,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 ''; } } -- 2.11.0