Skip to content

Commit 261f3da

Browse files
committed
MC-10871: [Sec] XSS Injection in HTML Code Content Type
- Fix static failure
1 parent 13d5f83 commit 261f3da

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/PageBuilder/Controller/ContentType

1 file changed

+2
-1
lines changed

app/code/Magento/PageBuilder/Controller/ContentType/Preview.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
namespace Magento\PageBuilder\Controller\ContentType;
1010

1111
use Magento\Framework\Controller\ResultFactory;
12+
use Magento\Framework\App\Action\HttpPostActionInterface;
1213

1314
/**
1415
* Preview controller to render blocks preview on Stage
@@ -18,7 +19,7 @@
1819
*
1920
* @api
2021
*/
21-
class Preview extends \Magento\Framework\App\Action\Action
22+
class Preview extends \Magento\Framework\App\Action\Action implements HttpPostActionInterface
2223
{
2324
/**
2425
* @var \Magento\PageBuilder\Model\Stage\RendererPool

0 commit comments

Comments
 (0)