Skip to content

Commit c80f3d5

Browse files
author
Daniel Neto
committed
fix: Ensure strict comparison for video ID hash validation in video editing
1 parent 68020fb commit c80f3d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

objects/video.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3994,7 +3994,7 @@ public static function canEncoderEdit($videos_id)
39943994
{
39953995
if (!empty($_REQUEST['video_id_hash']) &&
39963996
User::isLogged() &&
3997-
self::getVideoIdFromHash($_REQUEST['video_id_hash']) == intval($videos_id)) {
3997+
intval(self::getVideoIdFromHash($_REQUEST['video_id_hash'])) === intval($videos_id)) {
39983998
return true;
39993999
}
40004000
return self::canEdit($videos_id);

0 commit comments

Comments
 (0)