From 40ca21e6e5ba0e7a1c585b7e489653dcab625688 Mon Sep 17 00:00:00 2001 From: Hamish Friedlander Date: Wed, 11 Apr 2012 21:30:57 +1200 Subject: [PATCH] MINOR: Remove bugfix that is (a) unnessecary because the key is already just sha hashes, underscores and numbers and (b) broken because it strips the open and close quotes from the key --- view/SSTemplateParser.php.inc | 1 - 1 file changed, 1 deletion(-) diff --git a/view/SSTemplateParser.php.inc b/view/SSTemplateParser.php.inc index 88202e93d..1e2b08b38 100644 --- a/view/SSTemplateParser.php.inc +++ b/view/SSTemplateParser.php.inc @@ -490,7 +490,6 @@ class SSTemplateParser extends Parser { $block = ++$res['subblocks']; // Build the key for this block from the passed cache key, the block index, and the sha hash of the template itself $key = "'" . sha1($sub['php']) . (isset($res['key']) && $res['key'] ? "_'.sha1(".$res['key'].")" : "'") . ".'_$block'"; - $key = preg_replace('/[^a-zA-Z0-9_]/', '_', $key); // Get any condition $condition = isset($res['condition']) ? $res['condition'] : '';