Add a few more reserved words

master
Daniel Berteaud 11 years ago
parent ac2bffca01
commit 11691f244f
  1. 3
      public/vroom.pl

@ -344,7 +344,8 @@ helper valid_room_name => sub {
my ($name) = @_; my ($name) = @_;
my $ret = undef; my $ret = undef;
# A few names are reserved # A few names are reserved
my @reserved = qw(about help feedback feedback_thanks goodbye admin create localize action missing dies password kicked invitation); my @reserved = qw(about help feedback feedback_thanks goodbye admin create localize action
missing dies password kicked invitation js css img fonts snd);
if ($name =~ m/^[\w\-]{1,49}$/ && !grep { $name eq $_ } @reserved){ if ($name =~ m/^[\w\-]{1,49}$/ && !grep { $name eq $_ } @reserved){
$ret = 1; $ret = 1;
} }

Loading…
Cancel
Save