Skip to content

Commit 5708f5b

Browse files
committed
AC-9831: Block template render enhancement
1 parent 2ff00cb commit 5708f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/View/Element/AbstractBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ public function getCacheKeyInfo()
10481048
public function getCacheKey()
10491049
{
10501050
if ($this->hasData('cache_key')) {
1051-
if (preg_match('/[^a-z0-9\-\_]/', $this->getData('cache_key'))) {
1051+
if (preg_match('/[^a-z0-9\-\_]/i', $this->getData('cache_key'))) {
10521052
throw new \Magento\Framework\Exception\LocalizedException(
10531053
__(
10541054
'Please enter cache key with only alphanumeric or hash string.'

0 commit comments

Comments
 (0)