Skip to content

Commit

Permalink
optimized video thumbnail creation (#14472)
Browse files Browse the repository at this point in the history
  • Loading branch information
Corepex committed Feb 27, 2023
1 parent ee77e95 commit b9ba69f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -1554,7 +1554,7 @@ public function videoThumbnailUpdateAction(Request $request)
$type = $item['type'];
unset($item['type']);

$pipe->addItem($type, $item, $mediaName);
$pipe->addItem($type, $item, htmlspecialchars($mediaName));
}
}

Expand Down
Expand Up @@ -177,6 +177,7 @@ pimcore.settings.videothumbnail.item = Class.create({
},

addMediaPanel: function (name, items, closable, activate) {
name = name.replace(/[^a-zA-Z0-9_\-+]/g,'');

if (this.medias[name]) {
return;
Expand Down

0 comments on commit b9ba69f

Please sign in to comment.