mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
fix(import): add validation for handle field to prevent Router.invalidParameterType error
fixes #119
This commit is contained in:
parent
07d740b79f
commit
5bf7200fb3
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user