From 422ace207c9b1598006884e8c118302dc56e2bb7 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Fri, 30 Dec 2016 21:04:59 -0800 Subject: [PATCH] Fix security issue --- plugins/factoids.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/factoids.pm b/plugins/factoids.pm index 03ef56b..fa25856 100644 --- a/plugins/factoids.pm +++ b/plugins/factoids.pm @@ -144,7 +144,8 @@ sub postload { # command such as "forget foo" # Need to add "what is foo?" support... sub command { - my( $self, $said, $pm ) = @_; + my( $self, $_said, $pm ) = @_; + my $said = +{$_said->%*}; my $conf = $self->get_conf_for_channel($pm, $said->{server}, $said->{channel});