Skip to content

Commit a62cdd4

Browse files
committed
ACP2E-2787: Apostrophe in store view name is replaced by '
1 parent 4c03af8 commit a62cdd4

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ 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)) {
84+
} elseif (preg_match("/^(?=.*')[a-zA-Z0-9' ]+$/", $name)) {
8585
return $name;
8686
} else {
8787
$name = $this->escaper->escapeHtml($name);

0 commit comments

Comments
 (0)