summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2012-06-21 16:21:17 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2012-06-21 16:21:17 +0200
commit3b6af434b13168828429d06aae7699f6f9537a87 (patch)
tree299f2da60e6274b67db87429ed918b41a0c02ff6 /system/core
parentaf6d85088d54ed35f7c36ed010384ff7592f8959 (diff)
Replaced block tag minification regex with a less greedy solution.
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Output.php2
1 files changed, 1 insertions, 1 deletions
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*(</?(html|head|title|meta|script|link|style|body|h[1-6]|div|p|br).*>)\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 <pre> etc. tags with unprocessed ones.