beep bop boop

This commit is contained in:
Matthew Connelly 2015-11-14 06:26:00 +00:00
parent 7cb1fe36bb
commit 1b524d7996
1 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ sub CheckExpiry {
sub ValidateParams {
my $params = shift;
return undef unless $params->{code};
#TODO: Allow all 'word' characters rather than just a-zA-Z0-9, expanded grammar
#TODO: Allow all 'word' characters rather than just a-zA-Z0-9 and limited grammar
## Presently this is limited so people can't do anything nasty.
return undef unless $params->{title} =~ /^[a-zA-Z0-9\.\-_ @\(\)]{0,255}$/;
return undef unless $params->{lang} =~ /^[a-z0-9\.\-\+# ]{0,40}$/;