diff --git a/common/framework/Cache.php b/common/framework/Cache.php index 1f3fe58fb..45d646ff5 100644 --- a/common/framework/Cache.php +++ b/common/framework/Cache.php @@ -386,6 +386,10 @@ class Cache */ public static function getRealKey(string $key): string { + $key = preg_replace_callback('/[^\x21-\x7E]/', function($match) { + return rawurlencode($match[0]); + }, $key); + if (preg_match('/^([^:]+):(.+)$/i', $key, $matches)) { $key = $matches[1] . '#' . self::getGroupVersion($matches[1]) . ':' . $matches[2];