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 75c5dc9 commit 06c7b19Copy full SHA for 06c7b19
lib/internal/Magento/Framework/View/Element/AbstractBlock.php
@@ -1048,7 +1048,7 @@ 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-fA-F0-9]{64}$/', $this->getData('cache_key'))) {
1052
throw new \Magento\Framework\Exception\LocalizedException(
1053
__(
1054
'Please enter cache key with only alphanumeric characters.'
0 commit comments