fix: DataForm corrupts text area fields

fix: mysql 5.0.9 bug
This commit is contained in:
JT Smith 2006-05-31 22:08:17 +00:00
parent 5138d50a3f
commit 4a4da7bb43
3 changed files with 3 additions and 12 deletions

View file

@ -613,16 +613,6 @@ sub purge {
$self->SUPER::purge();
}
#-------------------------------------------------------------------
sub sanitizeUserInput {
my $self = shift;
my $content = shift;
my $contentType = shift || "text";
my $msg = WebGUI::HTML::format($content, $contentType);
return $msg;
}
#-------------------------------------------------------------------
sub sendEmail {
my $self = shift;
@ -1093,7 +1083,6 @@ sub www_process {
if ($row{status} eq "required" || $row{status} eq "editable") {
$value = $self->session->form->process($row{name},$row{type},$row{defaultValue});
WebGUI::Macro::filter(\$value);
$value = $self->sanitizeUserInput($value) unless ($row{type} eq "HTMLArea");
}
if ($row{status} eq "required" && ($value =~ /^\s$/ || $value eq "" || not defined $value)) {
push (@errors,{