- $val_ww =~ y/a-zA-Z//cd
- if (exists ($formdata -> {$name {$_}} -> {type}) and $formdata -> {$name {$_}} -> {type} eq 'name');
+ if (exists ($formdata -> {$name {$_}} -> {type}) and $formdata -> {$name {$_}} -> {type} eq 'name') {
+ $val_ww =~ y/a-zA-Z//cd;
+
+ my @badlist = map {qr/\Q$_/i} qw (
+ # insert badmatchlist here
+ );
+
+ push @badlist => map {qr/\b\Q$_\E\b/i} qw(
+ # insert badwordlist here
+ );
+
+ for (@badlist) {
+ if ($val_ww =~ /$_/) {
+ $self -> {error} = {
+ spec => 'undesired',
+ desc => $name{$_},
+ type => 'fatal'
+ };
+ return;
+ }
+ }
+ }