From d274f96be8cf984c7e89b360b9f207fe2b4dd50b Mon Sep 17 00:00:00 2001 From: lakshmana49 Date: Mon, 12 Feb 2024 21:04:38 +0530 Subject: [PATCH] ACP2E-2787: Apostrophe in store view name is replaced by ' --- .../Magento/Store/Ui/Component/Listing/Column/Store/Options.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/code/Magento/Store/Ui/Component/Listing/Column/Store/Options.php b/app/code/Magento/Store/Ui/Component/Listing/Column/Store/Options.php index af2fcce6c2d60..ced7dbfadc71a 100644 --- a/app/code/Magento/Store/Ui/Component/Listing/Column/Store/Options.php +++ b/app/code/Magento/Store/Ui/Component/Listing/Column/Store/Options.php @@ -81,6 +81,8 @@ protected function sanitizeName($name) preg_match('/\$[:]*{(.)*}/', $name ?: '', $matches); if (count($matches) > 0) { $name = $this->escaper->escapeHtml($this->escaper->escapeJs($name)); + } elseif (preg_match('/^[a-zA-Z\s\']+$/u', $name)) { + return $name; } else { $name = $this->escaper->escapeHtml($name); }