Skip to content

Commit efc25d7

Browse files
author
ogorkun
committed
MC-34385: Filter fields allowing HTML
1 parent 49f7dae commit efc25d7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/code/Magento/Cms/Model/BlockRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ private function getCollectionProcessor()
219219
{
220220
if (!$this->collectionProcessor) {
221221
$this->collectionProcessor = \Magento\Framework\App\ObjectManager::getInstance()->get(
222-
\Magento\Cms\Model\Api\SearchCriteria\BlockCollectionProcessor::class
222+
'Magento\Cms\Model\Api\SearchCriteria\BlockCollectionProcessor'
223223
);
224224
}
225225
return $this->collectionProcessor;

lib/internal/Magento/Framework/Validator/HTML/ConfigurableWYSIWYGValidator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ function (string $tag): string {
122122
if (!empty($this->attributesAllowedByTags[$tag])) {
123123
$allowed[] = $this->attributesAllowedByTags[$tag];
124124
}
125+
// phpcs:ignore Magento2.Performance.ForeachArrayMerge
125126
$allowed = array_unique(array_merge(...$allowed));
126127
$allowedQuery = '';
127128
if ($allowed) {

0 commit comments

Comments
 (0)