summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarDoug Freed <dwfreed@mtu.edu>2016-07-07 07:38:25 -0700
committerLibravatarDoug Freed <dwfreed@mtu.edu>2016-07-07 07:38:25 -0700
commit99538bbafe979b033e0c572b8d8f52c20cb08e9b (patch)
tree0041c06e1eb1fc78863547fbb6b07d156af9004e
parentc0b51ca8d736f470f8e17cefcb15c744354365bc (diff)
Prevent public regex access in ;help
-rw-r--r--lib/ASM/Commander.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ASM/Commander.pm b/lib/ASM/Commander.pm
index 7037755..e91dc44 100644
--- a/lib/ASM/Commander.pm
+++ b/lib/ASM/Commander.pm
@@ -446,7 +446,7 @@ sub cmd_help {
sub cmd_help2 {
my ($conn, $event) = @_;
- my @cmds = grep { $_ =~ /$+{cmd}/} (keys %{$cmdtbl});
+ my @cmds = grep { $_ =~ /\Q$+{cmd}/} (keys %{$cmdtbl});
if ((scalar @cmds) > 2) {
$conn->privmsg($event->replyto, "Please refer to http://antispammeta.net and irc.freenode.net #antispammeta");
} else {