added check for fieldType
This commit is contained in:
parent
6185f07642
commit
7653f450b4
1 changed files with 4 additions and 2 deletions
|
|
@ -113,8 +113,10 @@ Returns either what's posted or if nothing comes back it returns "text".
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
sub getValueFromPost {
|
sub getValueFromPost {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
return $self->session->form->param($self->get("name")) || "text";
|
my $fieldType = $self->session->form->param($self->get("name"));
|
||||||
|
$fieldType =~ s/[^\w]//g;
|
||||||
|
return $fieldType || "text";
|
||||||
}
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue