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:
parent
09cf2c8ed7
commit
b018b8e61e
5 changed files with 141 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue