diff options
-rwxr-xr-x | Bugzilla/Bug.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 65606e3f6..8c61a657b 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1767,7 +1767,10 @@ sub AUTOLOAD { $attr =~ s/.*:://; return unless $attr=~ /[^A-Z]/; - confess("invalid bug attribute $attr") unless _validate_attribute($attr); + if (!_validate_attribute($attr)) { + require Carp; + Carp::confess("invalid bug attribute $attr"); + } no strict 'refs'; *$AUTOLOAD = sub { |