We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06c7b19 commit 2ff00cbCopy full SHA for 2ff00cb
lib/internal/Magento/Framework/View/Element/AbstractBlock.php
@@ -1048,10 +1048,10 @@ public function getCacheKeyInfo()
1048
public function getCacheKey()
1049
{
1050
if ($this->hasData('cache_key')) {
1051
- if (!preg_match('/^[a-fA-F0-9]{64}$/', $this->getData('cache_key'))) {
+ if (preg_match('/[^a-z0-9\-\_]/', $this->getData('cache_key'))) {
1052
throw new \Magento\Framework\Exception\LocalizedException(
1053
__(
1054
- 'Please enter cache key with only alphanumeric characters.'
+ 'Please enter cache key with only alphanumeric or hash string.'
1055
)
1056
);
1057
}
0 commit comments