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
Pipeline #1188 passed with stages
in 7 minutes and 44 seconds
......@@ -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',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment