Skip to content
Permalink
Browse files

Validate R parameter in irc.cgi

This matches the check done in nph-irc.cgi.
  • Loading branch information...
dgl committed May 9, 2017
1 parent 14f36ce commit 46dd48442204207b52c16065ad67d294194afd8d
Showing with 1 addition and 0 deletions.
  1. +1 −0 irc.cgi
@@ -73,6 +73,7 @@ require($interface . '.pm');

if(ref $cgi && defined $cgi->{item}) {
print "\r\n"; # send final header
error('Communication socket name is invalid') if $cgi->{R} =~ /[^A-Za-z0-9]/;
my $name = $cgi->{item};
exit unless $interface->exists($name);
$interface->$name($cgi, $config, 0);

0 comments on commit 46dd484

Please sign in to comment.
You can’t perform that action at this time.