Skip to content

Commit

Permalink
ACP2E-2787: Apostrophe in store view name is replaced by '
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshmana49 committed Feb 26, 2024
1 parent 4c03af8 commit a62cdd4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ 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)) {
} elseif (preg_match("/^(?=.*')[a-zA-Z0-9' ]+$/", $name)) {
return $name;
} else {
$name = $this->escaper->escapeHtml($name);
Expand Down

0 comments on commit a62cdd4

Please sign in to comment.