Skip to content

Commit 597d548

Browse files
committed
category name escapeHTML and test related changes
1 parent de3b966 commit 597d548

File tree

2 files changed

+2
-2
lines changed
  • app/code/Magento/UrlRewrite/Block/Catalog/Category
  • dev/tests/integration/testsuite/Magento/UrlRewrite/Block/Catalog/Category

2 files changed

+2
-2
lines changed

app/code/Magento/UrlRewrite/Block/Catalog/Category/Tree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ protected function _getNodesArray($node)
163163
'children_count' => (int)$node->getChildrenCount(),
164164
'is_active' => (bool)$node->getIsActive(),
165165
// Scrub names for raw js output
166-
'name' => $this->escapeHtmlAttr($node->getName(), false),
166+
'name' => $this->escapeHtml($node->getName()),
167167
'level' => (int)$node->getLevel(),
168168
'product_count' => (int)$node->getProductCount(),
169169
];

dev/tests/integration/testsuite/Magento/UrlRewrite/Block/Catalog/Category/TreeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function testGetTreeArrayApostropheReplaced()
5858

5959
$this->assertNotContains('\'', $tree['children'][0]['children'][0]['children'][0]['name']);
6060
$this->assertEquals(
61-
''Category 6'',
61+
''Category 6'',
6262
$tree['children'][0]['children'][0]['children'][0]['name']
6363
);
6464
}

0 commit comments

Comments
 (0)