Issue Bug Closed

#100929Typoscript config controlsList=nodownload not possible!

Heiko Dietrich 05/30/23, 09:40 updated 07/09/24, 14:15

Description

Typoscript config not possible:

lib.contentElement.settings.media.additionalConfig.controlsList=nodownload

rendering will give 2 attributes

Reason is a doublet Foreach in \TYPO3\CMS\Core\Resource\Rendering\VideoTagRenderer::render-Method

  if (isset($options['additionalConfig']) && is_array($options['additionalConfig'])) {
            foreach ($options['additionalConfig'] as $key => $value) {
                if ((bool)$value) {
                    $attributes[] = htmlspecialchars($key);
                }
            }
        }

        foreach (['class', 'dir', 'id', 'lang', 'style', 'title', 'accesskey', 'tabindex', 'onclick', 'controlsList', 'preload'] as $key) {
            if (!empty($options[$key])) {
                $attributes[] = $key . '="' . htmlspecialchars($options[$key]) . '"';
            }
        }

Reviews 2