Skip to content

Commit b47ecab

Browse files
committed
AC-9831: Block template render enhancement
* integration test fix
1 parent 2c089a2 commit b47ecab

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]/i', $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 characters.'

0 commit comments

Comments
 (0)