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 2c089a2 commit b47ecabCopy full SHA for b47ecab
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-z0-9]/i', $this->getData('cache_key'))) {
+ if (preg_match('/[^a-z0-9\-]/i', $this->getData('cache_key'))) {
1052
throw new \Magento\Framework\Exception\LocalizedException(
1053
__(
1054
'Please enter cache key with only alphanumeric characters.'
0 commit comments