Skip to content

Commit c89a39d

Browse files
committed
CI3 - Updates & Fixes 3.1.11
CI3 Updates & Fixes 3.1.11
1 parent 39f5fde commit c89a39d

23 files changed

Lines changed: 180 additions & 127 deletions

ForgeIgniter/config/mimes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
'f4v' => array('video/mp4', 'video/x-f4v'),
141141
'flv' => 'video/x-flv',
142142
'webm' => 'video/webm',
143-
'aac' => 'audio/x-acc',
143+
'aac' => array('audio/x-aac', 'audio/aac'),
144144
'm4u' => 'application/vnd.mpegurl',
145145
'm3u' => 'text/plain',
146146
'xspf' => 'application/xspf+xml',

ForgeIgniter/system/core/CodeIgniter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
* @var string
5656
*
5757
*/
58-
const CI_VERSION = '3.1.10';
58+
const CI_VERSION = '3.1.11';
5959

6060
/*
6161
* ------------------------------------------------------

ForgeIgniter/system/core/Controller.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ class CI_Controller {
5858
*/
5959
private static $instance;
6060

61+
/**
62+
* CI_Loader
63+
*
64+
* @var CI_Loader
65+
*/
66+
public $load;
67+
6168
/**
6269
* Class constructor
6370
*

ForgeIgniter/system/core/Log.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,11 @@ public function write_log($level, $msg)
247247
* @param string $level The error level
248248
* @param string $date Formatted date string
249249
* @param string $message The log message
250-
* @return string Formatted log line with a new line character '\n' at the end
250+
* @return string Formatted log line with a new line character at the end
251251
*/
252252
protected function _format_line($level, $date, $message)
253253
{
254-
return $level.' - '.$date.' --> '.$message."\n";
254+
return $level.' - '.$date.' --> '.$message.PHP_EOL;
255255
}
256256

257257
// --------------------------------------------------------------------

ForgeIgniter/system/core/Security.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ public function csrf_verify()
228228

229229
// Check CSRF token validity, but don't error on mismatch just yet - we'll want to regenerate
230230
$valid = isset($_POST[$this->_csrf_token_name], $_COOKIE[$this->_csrf_cookie_name])
231+
&& is_string($_POST[$this->_csrf_token_name]) && is_string($_COOKIE[$this->_csrf_cookie_name])
231232
&& hash_equals($_POST[$this->_csrf_token_name], $_COOKIE[$this->_csrf_cookie_name]);
232233

233234
// We kill this since we're done and we don't want to pollute the _POST array

ForgeIgniter/system/database/DB_result.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ public function set_row($key, $value = NULL)
381381
*/
382382
public function custom_row_object($n, $type)
383383
{
384-
isset($this->custom_result_object[$type]) OR $this->custom_result_object($type);
384+
isset($this->custom_result_object[$type]) OR $this->custom_result_object[$type] = $this->custom_result_object($type);
385385

386386
if (count($this->custom_result_object[$type]) === 0)
387387
{

ForgeIgniter/system/database/drivers/mysql/mysql_driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ public function insert_id()
383383
*/
384384
protected function _list_tables($prefix_limit = FALSE)
385385
{
386-
$sql = 'SHOW TABLES FROM '.$this->escape_identifiers($this->database);
386+
$sql = 'SHOW TABLES FROM '.$this->_escape_char.$this->database.$this->_escape_char;
387387

388388
if ($prefix_limit !== FALSE && $this->dbprefix !== '')
389389
{

ForgeIgniter/system/database/drivers/mysqli/mysqli_driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ public function insert_id()
429429
*/
430430
protected function _list_tables($prefix_limit = FALSE)
431431
{
432-
$sql = 'SHOW TABLES FROM '.$this->escape_identifiers($this->database);
432+
$sql = 'SHOW TABLES FROM '.$this->_escape_char.$this->database.$this->_escape_char;
433433

434434
if ($prefix_limit !== FALSE && $this->dbprefix !== '')
435435
{

ForgeIgniter/system/database/drivers/oci8/oci8_forge.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ class CI_DB_oci8_forge extends CI_DB_forge {
8181
*/
8282
protected $_unsigned = FALSE;
8383

84+
/**
85+
* NULL value representation in CREATE/ALTER TABLE statements
86+
*
87+
* @var string
88+
*/
89+
protected $_null = 'NULL';
90+
8491
// --------------------------------------------------------------------
8592

8693
/**

ForgeIgniter/system/database/drivers/pdo/pdo_result.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function field_data()
133133

134134
$retval[$i] = new stdClass();
135135
$retval[$i]->name = $field['name'];
136-
$retval[$i]->type = $field['native_type'];
136+
$retval[$i]->type = isset($field['native_type']) ? $field['native_type'] : null;
137137
$retval[$i]->max_length = ($field['len'] > 0) ? $field['len'] : NULL;
138138
$retval[$i]->primary_key = (int) ( ! empty($field['flags']) && in_array('primary_key', $field['flags'], TRUE));
139139
}

0 commit comments

Comments
 (0)