beep bop boop
This commit is contained in:
parent
7cb1fe36bb
commit
1b524d7996
|
@ -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}$/;
|
||||
|
|
Loading…
Reference in New Issue