fix(security): add csrf filter + prevent xss attacks by escaping user input

- update CI4 to v4.1.9's stable production package
- update php and js dependencies to latest
This commit is contained in:
Yassine Doghri 2022-03-04 14:33:48 +00:00
commit cd2e1e1dc3
182 changed files with 4410 additions and 4214 deletions

View file

@ -197,7 +197,7 @@ class VideoClipsController extends BaseController
{
$videoClip = (new ClipModel())->getVideoClipById((int) $videoClipId);
if ($videoClip === null) {
if (! $videoClip instanceof VideoClip) {
throw PageNotFoundException::forPageNotFound();
}
@ -214,7 +214,7 @@ class VideoClipsController extends BaseController
{
$videoClip = (new ClipModel())->getVideoClipById((int) $videoClipId);
if ($videoClip === null) {
if (! $videoClip instanceof VideoClip) {
throw PageNotFoundException::forPageNotFound();
}