Skip to content

Commit 74ae9ea

Browse files
committed
security: Double-check that component/block name in AJAX call is a string
1 parent c3f94cf commit 74ae9ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Controller/Index/Html.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ private function getComponentUpdates(array $updates, LayoutInterface $layout): a
111111
{
112112
$componentUpdates = [];
113113
foreach ($updates as $updateIndex => $update) {
114-
if (!isset($update['blockName'])) {
114+
if (!isset($update['blockName']) || !is_string($update['blockName'])) {
115115
continue;
116116
}
117117

0 commit comments

Comments
 (0)