From 5afd528467424813ad772bb2a96d1cdd930ee171 Mon Sep 17 00:00:00 2001 From: Fabrizio Balliano Date: Mon, 20 Mar 2023 17:17:55 +0000 Subject: [PATCH] Disabled and disallowed SWF file extension --- app/code/core/Mage/Cms/Helper/Data.php | 10 +++------- app/code/core/Mage/Cms/Model/Wysiwyg/Config.php | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/app/code/core/Mage/Cms/Helper/Data.php b/app/code/core/Mage/Cms/Helper/Data.php index 4bb41f9d918..60a3eea77d3 100644 --- a/app/code/core/Mage/Cms/Helper/Data.php +++ b/app/code/core/Mage/Cms/Helper/Data.php @@ -75,15 +75,11 @@ public function getAllowedStreamWrappers() /** * Check is swf file extension disabled * - * @return bool + * @return true + * @deprecated since 19.5.0 */ public function isSwfDisabled() { - $statusSwf = Mage::getConfig()->getNode(self::XML_NODE_ALLOWED_MEDIA_EXT_SWF); - if ($statusSwf instanceof Mage_Core_Model_Config_Element) { - $statusSwf = $statusSwf->asArray()[0]; - } - - return $statusSwf ? false : true; + return true; } } diff --git a/app/code/core/Mage/Cms/Model/Wysiwyg/Config.php b/app/code/core/Mage/Cms/Model/Wysiwyg/Config.php index 96707d643a7..4bea1932c61 100644 --- a/app/code/core/Mage/Cms/Model/Wysiwyg/Config.php +++ b/app/code/core/Mage/Cms/Model/Wysiwyg/Config.php @@ -92,7 +92,7 @@ public function getConfig($data = []) Mage::getBaseUrl('js') . 'mage/adminhtml/wysiwyg/tiny_mce/themes/advanced/skins/default/content.css', 'width' => '100%', 'plugins' => [], - 'media_disable_flash' => Mage::helper('cms')->isSwfDisabled() + 'media_disable_flash' => true ]); $config->setData('directives_url_quoted', preg_quote($config->getData('directives_url')));