diff options
Diffstat (limited to 'system/core')
-rw-r--r-- | system/core/Log.php | 3 | ||||
-rw-r--r-- | system/core/Security.php | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/system/core/Log.php b/system/core/Log.php index e66270840..718f50587 100644 --- a/system/core/Log.php +++ b/system/core/Log.php @@ -84,7 +84,7 @@ class CI_Log { * * @var array */ - protected $_levels = array('ERROR' => 1, 'DEBUG' => 2, 'INFO' => 3, 'ALL' => 4); + protected $_levels = array('ERROR' => 1, 'DEBUG' => 2, 'INFO' => 3, 'ALL' => 4); /** * Initialize Logging class @@ -145,7 +145,6 @@ class CI_Log { return FALSE; } - $filepath = $this->_log_path.'log-'.date('Y-m-d').'.php'; $message = ''; diff --git a/system/core/Security.php b/system/core/Security.php index b8e66c087..c415544b6 100644 --- a/system/core/Security.php +++ b/system/core/Security.php @@ -368,7 +368,7 @@ class CI_Security { } else { - $str = str_replace(array('<?', '?'.'>'), array('<?', '?>'), $str); + $str = str_replace(array('<?', '?'.'>'), array('<?', '?>'), $str); } /* @@ -382,7 +382,6 @@ class CI_Security { 'applet', 'alert', 'document', 'write', 'cookie', 'window' ); - foreach ($words as $word) { $word = implode('\s*', str_split($word)).'\s*'; |