set parameter strings with entry::set_strings
This commit is contained in:
@@ -1469,15 +1469,11 @@ sub check_params {
|
||||
]);
|
||||
|
||||
#scalars
|
||||
for my $param ( 'search', 'from', 'till', 'period_type' ) {
|
||||
if ( defined $params->{$param} ) {
|
||||
$checked->{$param} = $params->{$param};
|
||||
$checked->{$param} =~ s/^\s+//g;
|
||||
$checked->{$param} =~ s/\s+$//g;
|
||||
}
|
||||
}
|
||||
entry::set_strings( $checked, $params,
|
||||
[ 'search', 'from', 'till', 'period_type' ]
|
||||
);
|
||||
|
||||
for my $param (
|
||||
entry::set_strings( $checked, $params, [
|
||||
'series_name', 'title',
|
||||
'excerpt', 'content',
|
||||
'topic', 'image',
|
||||
@@ -1485,16 +1481,7 @@ sub check_params {
|
||||
'assign_event_title', 'comment',
|
||||
'podcast_url', 'archive_url',
|
||||
'setImage', 'content_format'
|
||||
)
|
||||
{
|
||||
if ( defined $params->{$param} ) {
|
||||
|
||||
#$checked->{$param}=uri_unescape();
|
||||
$checked->{$param} = $params->{$param};
|
||||
$checked->{$param} =~ s/^\s+//g;
|
||||
$checked->{$param} =~ s/\s+$//g;
|
||||
}
|
||||
}
|
||||
]);
|
||||
|
||||
for my $attr ('start') {
|
||||
if ( ( defined $params->{$attr} )
|
||||
|
||||
Reference in New Issue
Block a user