Document return value for Storage::rename

Add simple new test for Text.t
Add ClassName.t test
Prevent Form/ClassName from passing classes with spaces in them and
remove redundant test for digits in regexp.
Add a new test to Storage.t for getLastError
This commit is contained in:
Colin Kuskie 2006-05-11 17:37:42 +00:00
parent 09cf2c8ed7
commit b018b8e61e
5 changed files with 141 additions and 3 deletions

View file

@ -71,7 +71,7 @@ Returns a class name which has been taint checked.
sub getValueFromPost {
my $self = shift;
my $value = $self->session->form->param($self->get("name"));
$value =~ s/[^\w\d\s:]//g;
$value =~ s/[^\w:]//g;
return $value;
}