summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorjudge <mjnaderi@gmail.com>2013-09-10 13:59:46 +0200
committerjudge <mjnaderi@gmail.com>2013-09-10 13:59:46 +0200
commit67e643a475a37c53267d0f43b2c2d67efd907014 (patch)
treea806472621eccc2a420483fd475ee00b132902c7 /system/core
parentb61affdfeb37da0e97fc33a8ffe3ccabb0e47e04 (diff)
fixed error in finding closing tag
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 06d7a866b..7bfb8cebe 100644
--- a/system/core/Output.php
+++ b/system/core/Output.php
@@ -841,7 +841,7 @@ class CI_Output {
$output = substr_replace($output, '', 0, $pos);
// Remove closing tag and save it for later
- $pos = strpos($output, '</');
+ $pos = strrpos($output, '</');
$closing_tag = substr($output, $pos, strlen($output));
$output = substr_replace($output, '', $pos);
}