Skip to content
Snippets Groups Projects
Commit 5bf7200f authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix(import): add validation for handle field to prevent Router.invalidParameterType error

fixes #119
parent 07d740b7
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,7 @@ class PodcastImportController extends BaseController
helper(['media', 'misc']);
$rules = [
'handle' => 'required|regex_match[/^[a-zA-Z0-9\_]{1,32}$/]',
'imported_feed_url' => 'required|validate_url',
'season_number' => 'is_natural_no_zero|permit_empty',
'max_episodes' => 'is_natural_no_zero|permit_empty',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment