Reject uninitialized room names

master
Daniel Berteaud 10 years ago
parent c9e37c8ab8
commit 3e2fbbcd11
  1. 2
      vroom.pl

@ -123,7 +123,7 @@ helper valid_room_name => sub {
my @reserved = qw(about help feedback feedback_thanks goodbye admin localize api
missing dies password kicked invitation js css img fonts snd
documentation);
if ($name !~ m/^[\w\-]{1,49}$/ || grep { $name eq $_ } @reserved){
if (!$name || $name !~ m/^[\w\-]{1,49}$/ || grep { $name eq $_ } @reserved){
return 0;
}
return 1;

Loading…
Cancel
Save