Skip to content

Commit d274f96

Browse files
committed
ACP2E-2787: Apostrophe in store view name is replaced by '
1 parent 594a590 commit d274f96

File tree

1 file changed

+2
-0
lines changed
  • app/code/Magento/Store/Ui/Component/Listing/Column/Store

1 file changed

+2
-0
lines changed

app/code/Magento/Store/Ui/Component/Listing/Column/Store/Options.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ protected function sanitizeName($name)
8181
preg_match('/\$[:]*{(.)*}/', $name ?: '', $matches);
8282
if (count($matches) > 0) {
8383
$name = $this->escaper->escapeHtml($this->escaper->escapeJs($name));
84+
} elseif (preg_match('/^[a-zA-Z\s\']+$/u', $name)) {
85+
return $name;
8486
} else {
8587
$name = $this->escaper->escapeHtml($name);
8688
}

0 commit comments

Comments
 (0)