diff --git a/models/ProductVideo.php b/models/ProductVideo.php index 1edade0..2dd0138 100755 --- a/models/ProductVideo.php +++ b/models/ProductVideo.php @@ -49,6 +49,14 @@ 'required', ], [ + [ + 'url', + ], + 'match', + 'pattern' => '/^.* \Yii::t('app', 'Ссылка обязательно должна включать тег iframe и протокол должен быть https://'), + ], + [ [ 'product_id' ], 'exist', 'skipOnError' => true, -- libgit2 0.21.4