Skip to content
This repository
Browse code

MINOR: Remove bugfix that is (a) unnessecary because the key is alrea…

…dy just sha hashes, underscores and numbers and (b) broken because it strips the open and close quotes from the key
  • Loading branch information...
commit 40ca21e6e5ba0e7a1c585b7e489653dcab625688 1 parent 213a08a
Hamish Friedlander authored April 11, 2012

Showing 1 changed file with 0 additions and 1 deletion. Show diff stats Hide diff stats

  1. 1  view/SSTemplateParser.php.inc
1  view/SSTemplateParser.php.inc
@@ -490,7 +490,6 @@ class SSTemplateParser extends Parser {
490 490
 		$block = ++$res['subblocks'];
491 491
 		// Build the key for this block from the passed cache key, the block index, and the sha hash of the template itself
492 492
 		$key = "'" . sha1($sub['php']) . (isset($res['key']) && $res['key'] ? "_'.sha1(".$res['key'].")" : "'") . ".'_$block'";
493  
-		$key = preg_replace('/[^a-zA-Z0-9_]/', '_', $key);
494 493
 		// Get any condition
495 494
 		$condition = isset($res['condition']) ? $res['condition'] : '';
496 495
 		

0 notes on commit 40ca21e

Please sign in to comment.
Something went wrong with that request. Please try again.