mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-03 23:09:18 +02:00
fix(import): add validation for handle field to prevent Router.invalidParameterType error
fixes #119
This commit is contained in:
parent
07d740b79f
commit
5bf7200fb3
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue