From 3b6af434b13168828429d06aae7699f6f9537a87 Mon Sep 17 00:00:00 2001 From: Phil Sturgeon Date: Thu, 21 Jun 2012 09:21:17 -0500 Subject: Replaced block tag minification regex with a less greedy solution. --- system/core/Output.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/core') diff --git a/system/core/Output.php b/system/core/Output.php index ed294f116..4fdf18f14 100644 --- a/system/core/Output.php +++ b/system/core/Output.php @@ -652,7 +652,7 @@ class CI_Output { $output = preg_replace('{\s*\s*}msU', '', $output); // Remove spaces around block-level elements. - $output = preg_replace('{\s*()\s+}msU', '$1', $output); + $output = preg_replace('/\s*(<\/?(html|head|title|meta|script|link|style|body|h[1-6]|div|p|br)[^>]*>)\s*/is', '$1', $output); // Replace mangled
 etc. tags with unprocessed ones.
 
-- 
cgit v1.2.3-24-g4f1b