diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-05-14 00:26:09 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-05-14 00:26:09 +0200 |
commit | 454fa7e0039689ca480eb6ef999d3fa753f5f875 (patch) | |
tree | bb6a6069cda5ea4d8c30478dd30e18e4104364d5 /system/libraries/Loader.php | |
parent | 9941d8621d9f839a8c7428fa27196ff9ca983742 (diff) |
force closing tag on eval() for servers not running short_open_tags
Diffstat (limited to 'system/libraries/Loader.php')
-rw-r--r-- | system/libraries/Loader.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php index 5e3819ea6..3346f0a2a 100644 --- a/system/libraries/Loader.php +++ b/system/libraries/Loader.php @@ -703,7 +703,7 @@ class CI_Loader { if ((bool) @ini_get('short_open_tag') === FALSE AND config_item('rewrite_short_tags') == TRUE)
{
- echo eval(preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));
+ echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));
}
else
{
|