diff options
Diffstat (limited to 'system/core')
-rw-r--r-- | system/core/Output.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/system/core/Output.php b/system/core/Output.php index 4fdf18f14..5ec8c4bc0 100644 --- a/system/core/Output.php +++ b/system/core/Output.php @@ -625,6 +625,11 @@ class CI_Output { $size_before = strlen($output); + if ($size_before === 0) + { + return ''; + } + // Find all the <pre>,<code>,<textarea>, and <javascript> tags // We'll want to return them to this unprocessed state later. preg_match_all('{<pre.+</pre>}msU', $output, $pres_clean); |