Skip to content

Commit b52787a

Browse files
committed
#13296: Category name with special characters brakes … #13402
1 parent b9d2e53 commit b52787a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dev/tests/integration/testsuite/Magento/Catalog/_files/catalog_category_with_doublequotes.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
/** @var $category \Magento\Catalog\Model\Category */
89
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();

lib/web/mage/utils/misc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,11 @@ define([
251251
*/
252252
unescape: function (data) {
253253
var unescaped = _.unescape(data),
254-
map = {
254+
mapCharacters = {
255255
''': '\''
256256
};
257257

258-
_.each(map, function (value, key) {
258+
_.each(mapCharacters, function (value, key) {
259259
unescaped = unescaped.replace(key, value);
260260
});
261261

0 commit comments

Comments
 (0)