From a52d8fb14d6f120dbc49fb2526c70d12b2f57407 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sun, 7 Oct 2018 21:30:39 +1300 Subject: Natural: Disable regex injection --- Plugin/Natural.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Plugin') diff --git a/Plugin/Natural.pm b/Plugin/Natural.pm index 78ff916..d347dcc 100644 --- a/Plugin/Natural.pm +++ b/Plugin/Natural.pm @@ -60,7 +60,7 @@ sub on_message { $where = $where->[0]; } - return unless $what =~ /\b$root_config->{current_nick}\b/; + return unless $what =~ /\b\Q$root_config->{current_nick}\E\b/; return unless mention_odds(); my $response = choose_response($what, $nick); -- cgit v1.1