From bd0b4b306fd9995e19c333eb9b55806e9b56f34c Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Mon, 2 Jul 2012 15:48:35 +0300 Subject: Fix issue #1543 --- system/libraries/Cache/drivers/Cache_file.php | 11 +++++------ user_guide/changelog.html | 8 ++++++++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/system/libraries/Cache/drivers/Cache_file.php b/system/libraries/Cache/drivers/Cache_file.php index c50043660..e515eebf1 100644 --- a/system/libraries/Cache/drivers/Cache_file.php +++ b/system/libraries/Cache/drivers/Cache_file.php @@ -151,13 +151,12 @@ class CI_Cache_file extends CI_Driver { { return FALSE; } - - $data = read_file($this->_cache_path.$id); + + $data = read_file($this->_cache_path.$id); $data = unserialize($data); - + if (is_array($data)) { - $data = $data['data']; $mtime = filemtime($this->_cache_path.$id); if ( ! isset($data['ttl'])) @@ -166,11 +165,11 @@ class CI_Cache_file extends CI_Driver { } return array( - 'expire' => $mtime + $data['ttl'], + 'expire' => $mtime + $data['ttl'], 'mtime' => $mtime ); } - + return FALSE; } diff --git a/user_guide/changelog.html b/user_guide/changelog.html index a8f69af36..c3a7e4c2a 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -57,6 +57,14 @@ Change Log

Change Log

+

Version 2.1.3

+

Release Date: Not Released

+ +

Bug fixes for 2.1.3:

+ +

Version 2.1.2

Release Date: June 29, 2012

-- cgit v1.2.3-24-g4f1b From a8126b18a37d211240df254a82031e736eb98daf Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Wed, 4 Jul 2012 10:37:57 +0300 Subject: Backport CI_Config::load() optimization from pull #1571 --- system/core/Config.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/system/core/Config.php b/system/core/Config.php index 714c4667b..5dffbf3f2 100755 --- a/system/core/Config.php +++ b/system/core/Config.php @@ -99,12 +99,12 @@ class CI_Config { $found = FALSE; $loaded = FALSE; + $check_locations = defined('ENVIRONMENT') + ? array(ENVIRONMENT.'/'.$file, $file) + : array($file); + foreach ($this->_config_paths as $path) { - $check_locations = defined('ENVIRONMENT') - ? array(ENVIRONMENT.'/'.$file, $file) - : array($file); - foreach ($check_locations as $location) { $file_path = $path.'config/'.$location.'.php'; @@ -168,7 +168,7 @@ class CI_Config { { return FALSE; } - show_error('The configuration file '.$file.'.php'.' does not exist.'); + show_error('The configuration file '.$file.'.php does not exist.'); } return TRUE; @@ -279,7 +279,7 @@ class CI_Config { */ function base_url($uri = '') { - return $this->slash_item('base_url').ltrim($this->_uri_string($uri),'/'); + return $this->slash_item('base_url').ltrim($this->_uri_string($uri), '/'); } // ------------------------------------------------------------- -- cgit v1.2.3-24-g4f1b From 31380e88dd6af1d91ef1de0425b320706462e887 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Mon, 9 Jul 2012 15:53:19 +0300 Subject: Alter CI_DB_pdo_result::num_rows() --- system/database/drivers/pdo/pdo_result.php | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/system/database/drivers/pdo/pdo_result.php b/system/database/drivers/pdo/pdo_result.php index a366a5f12..44fdd6dc5 100644 --- a/system/database/drivers/pdo/pdo_result.php +++ b/system/database/drivers/pdo/pdo_result.php @@ -26,26 +26,27 @@ */ class CI_DB_pdo_result extends CI_DB_result { + public $num_rows; + /** * Number of rows in the result set * - * @access public - * @return integer + * @return int */ - function num_rows() + public function num_rows() { - if (is_numeric(stripos($this->result_id->queryString, 'SELECT'))) + if (is_int($this->num_rows)) { - $dbh = $this->conn_id; - $query = $dbh->query($this->result_id->queryString); - $result = $query->fetchAll(); - unset($dbh, $query); - return count($result); + return $this->num_rows; } - else + elseif (($this->num_rows = $this->result_id->rowCount()) > 0) { - return $this->result_id->rowCount(); + return $this->num_rows; } + + $this->num_rows = count($this->result_id->fetchAll()); + $this->result_id->execute(); + return $this->num_rows; } // -------------------------------------------------------------------- -- cgit v1.2.3-24-g4f1b From aa6868d9b9664553066cce908211030693774273 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Wed, 18 Jul 2012 16:02:40 +0300 Subject: Backport fix for issue #1314 --- system/libraries/Session.php | 7 +++++-- user_guide/changelog.html | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/system/libraries/Session.php b/system/libraries/Session.php index 8ee08c5b2..891fdd36a 100644 --- a/system/libraries/Session.php +++ b/system/libraries/Session.php @@ -97,7 +97,7 @@ class CI_Session { { $this->sess_expiration = (60*60*24*365*2); } - + // Set the cookie name $this->sess_cookie_name = $this->cookie_prefix.$this->sess_cookie_name; @@ -399,7 +399,7 @@ class CI_Session { function sess_destroy() { // Kill the session DB row - if ($this->sess_use_database === TRUE AND isset($this->userdata['session_id'])) + if ($this->sess_use_database === TRUE && isset($this->userdata['session_id'])) { $this->CI->db->where('session_id', $this->userdata['session_id']); $this->CI->db->delete($this->sess_table_name); @@ -414,6 +414,9 @@ class CI_Session { $this->cookie_domain, 0 ); + + // Kill session data + $this->userdata = array(); } // -------------------------------------------------------------------- diff --git a/user_guide/changelog.html b/user_guide/changelog.html index c3a7e4c2a..bfca5a286 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -63,6 +63,7 @@ Change Log

Bug fixes for 2.1.3:

  • Fixed a bug (#1543) - File-based Caching method get_metadata() used a non-existent array key to look for the TTL value.
  • +
  • Fixed a bug (#1314) - Session Library method sess_destroy() didn't destroy the userdata array.

Version 2.1.2

-- cgit v1.2.3-24-g4f1b From 7af48d061b7b4250fdb54466655ad1067856d326 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Tue, 24 Jul 2012 11:13:35 +0300 Subject: Change is_loaded() to return a reference --- system/core/Common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/core/Common.php b/system/core/Common.php index d79375475..07534c51f 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -187,7 +187,7 @@ if ( ! function_exists('load_class')) */ if ( ! function_exists('is_loaded')) { - function is_loaded($class = '') + function &is_loaded($class = '') { static $_is_loaded = array(); -- cgit v1.2.3-24-g4f1b From 38339acb3de57283a63a72b2febe43fef9411453 Mon Sep 17 00:00:00 2001 From: Raul Baldner junior Date: Tue, 31 Jul 2012 15:59:10 -0300 Subject: Fix warning by profiler when userdata has objects If session data has objects and profiler is enabled, a warning is trown: > A PHP Error was encountered > Severity: Warning > Message: htmlspecialchars() expects parameter 1 to be string, object given > Filename: libraries/Profiler.php > Line Number: 514 --- system/libraries/Profiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/libraries/Profiler.php b/system/libraries/Profiler.php index 082a5ee1d..0e0bde97f 100644 --- a/system/libraries/Profiler.php +++ b/system/libraries/Profiler.php @@ -506,7 +506,7 @@ class CI_Profiler { foreach ($this->CI->session->all_userdata() as $key => $val) { - if (is_array($val)) + if (is_array($val) || is_object($val)) { $val = print_r($val, TRUE); } -- cgit v1.2.3-24-g4f1b From 894b7433cdab3ccb1577f2696a31d7b7a9ebb20d Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Wed, 1 Aug 2012 16:09:35 +0300 Subject: Style fix and changelog entry for pull #1675 --- system/libraries/Profiler.php | 2 +- user_guide/changelog.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/system/libraries/Profiler.php b/system/libraries/Profiler.php index 0e0bde97f..882a82c1f 100644 --- a/system/libraries/Profiler.php +++ b/system/libraries/Profiler.php @@ -506,7 +506,7 @@ class CI_Profiler { foreach ($this->CI->session->all_userdata() as $key => $val) { - if (is_array($val) || is_object($val)) + if (is_array($val) OR is_object($val)) { $val = print_r($val, TRUE); } diff --git a/user_guide/changelog.html b/user_guide/changelog.html index bfca5a286..2bb3e6916 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -64,6 +64,7 @@ Change Log
  • Fixed a bug (#1543) - File-based Caching method get_metadata() used a non-existent array key to look for the TTL value.
  • Fixed a bug (#1314) - Session Library method sess_destroy() didn't destroy the userdata array. +
  • Fixed a bug where the Profiler Library issued an E_WARNING error if Session userdata contains objects.

Version 2.1.2

-- cgit v1.2.3-24-g4f1b From da4f9e1291c6b4d9beb682b635a811de897fbacf Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Wed, 5 Sep 2012 10:31:10 +0300 Subject: Backport a fix for oci8_result::num_rows() --- system/database/drivers/oci8/oci8_result.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/system/database/drivers/oci8/oci8_result.php b/system/database/drivers/oci8/oci8_result.php index ae133d7b5..3421278a5 100644 --- a/system/database/drivers/oci8/oci8_result.php +++ b/system/database/drivers/oci8/oci8_result.php @@ -26,9 +26,9 @@ */ class CI_DB_oci8_result extends CI_DB_result { - var $stmt_id; - var $curs_id; - var $limit_used; + public $stmt_id; + public $curs_id; + public $limit_used; /** * Number of rows in the result set. @@ -36,8 +36,6 @@ class CI_DB_oci8_result extends CI_DB_result { * Oracle doesn't have a graceful way to retun the number of rows * so we have to use what amounts to a hack. * - * - * @access public * @return integer */ public function num_rows() @@ -53,7 +51,7 @@ class CI_DB_oci8_result extends CI_DB_result { } } - return $rowcount; + return $this->num_rows; } // -------------------------------------------------------------------- -- cgit v1.2.3-24-g4f1b From 7ad72975fa3cda4bf8797f788ba7445bdb4ae67a Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Thu, 4 Oct 2012 15:16:41 +0300 Subject: Backport fix for issue #1699 --- system/libraries/Migration.php | 32 +++++++++++--------------------- user_guide/changelog.html | 1 + 2 files changed, 12 insertions(+), 21 deletions(-) diff --git a/system/libraries/Migration.php b/system/libraries/Migration.php index 5a41377ea..df2dd7ce3 100644 --- a/system/libraries/Migration.php +++ b/system/libraries/Migration.php @@ -57,7 +57,7 @@ class CI_Migration { } // If not set, set it - $this->_migration_path == '' OR $this->_migration_path = APPPATH . 'migrations/'; + $this->_migration_path == '' AND $this->_migration_path = APPPATH . 'migrations/'; // Add trailing slash if not set $this->_migration_path = rtrim($this->_migration_path, '/').'/'; @@ -89,8 +89,7 @@ class CI_Migration { * Calls each migration step required to get to the schema version of * choice * - * @access public - * @param $version integer Target schema version + * @param int Target schema version * @return mixed TRUE if already latest, FALSE if failed, int if upgraded */ public function version($target_version) @@ -105,14 +104,13 @@ class CI_Migration { ++$stop; $step = 1; } - else { // Moving Down $step = -1; } - - $method = $step === 1 ? 'up' : 'down'; + + $method = ($step === 1) ? 'up' : 'down'; $migrations = array(); // We now prepare to actually DO the migrations @@ -216,7 +214,6 @@ class CI_Migration { /** * Set's the schema to the latest migration * - * @access public * @return mixed true if already latest, false if failed, int if upgraded */ public function latest() @@ -228,7 +225,7 @@ class CI_Migration { } $last_migration = basename(end($migrations)); - + // Calculate the last migration step from existing migration // filenames and procceed to the standard version migration return $this->version((int) substr($last_migration, 0, 3)); @@ -239,7 +236,6 @@ class CI_Migration { /** * Set's the schema to the migration version set in config * - * @access public * @return mixed true if already current, false if failed, int if upgraded */ public function current() @@ -252,7 +248,6 @@ class CI_Migration { /** * Error string * - * @access public * @return string Error message returned as a string */ public function error_string() @@ -265,7 +260,6 @@ class CI_Migration { /** * Set's the schema to the latest migration * - * @access protected * @return mixed true if already latest, false if failed, int if upgraded */ protected function find_migrations() @@ -273,7 +267,7 @@ class CI_Migration { // Load all *_*.php files in the migrations path $files = glob($this->_migration_path . '*_*.php'); $file_count = count($files); - + for ($i = 0; $i < $file_count; $i++) { // Mark wrongly formatted files as false for later filtering @@ -283,9 +277,8 @@ class CI_Migration { $files[$i] = FALSE; } } - - sort($files); + sort($files); return $files; } @@ -294,8 +287,7 @@ class CI_Migration { /** * Retrieves current schema version * - * @access protected - * @return integer Current Migration + * @return int Current Migration */ protected function _get_version() { @@ -308,9 +300,8 @@ class CI_Migration { /** * Stores the current schema version * - * @access protected - * @param $migrations integer Migration reached - * @return void Outputs a report of the migration + * @param int Migration reached + * @return bool */ protected function _update_version($migrations) { @@ -324,8 +315,7 @@ class CI_Migration { /** * Enable the use of CI super-global * - * @access public - * @param $var + * @param mixed $var * @return mixed */ public function __get($var) diff --git a/user_guide/changelog.html b/user_guide/changelog.html index 2bb3e6916..9c36eabff 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -65,6 +65,7 @@ Change Log
  • Fixed a bug (#1543) - File-based Caching method get_metadata() used a non-existent array key to look for the TTL value.
  • Fixed a bug (#1314) - Session Library method sess_destroy() didn't destroy the userdata array.
  • Fixed a bug where the Profiler Library issued an E_WARNING error if Session userdata contains objects.
  • +
  • Fixed a bug (#1699) - Migration Library ignored the $config['migration_path'] setting.

    Version 2.1.2

    -- cgit v1.2.3-24-g4f1b From b0fe0a9a6813e8d3ebca94c5fa86ab6f36f3390d Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Sat, 6 Oct 2012 15:24:53 +0300 Subject: Fix issues #227 and #907 --- system/core/Input.php | 63 +++++++++++++++++++++++------------------------ user_guide/changelog.html | 8 +++--- 2 files changed, 36 insertions(+), 35 deletions(-) diff --git a/system/core/Input.php b/system/core/Input.php index 3559d8607..66e02ba00 100755 --- a/system/core/Input.php +++ b/system/core/Input.php @@ -73,13 +73,13 @@ class CI_Input { */ protected $headers = array(); - /** * Constructor * * Sets whether to globally enable the XSS processing * and whether to allow the $_GET array * + * @return void */ public function __construct() { @@ -306,50 +306,49 @@ class CI_Input { /** * Fetch the IP Address * - * @access public * @return string */ - function ip_address() + public function ip_address() { if ($this->ip_address !== FALSE) { return $this->ip_address; } - if (config_item('proxy_ips') != '' && $this->server('HTTP_X_FORWARDED_FOR') && $this->server('REMOTE_ADDR')) + $proxy_ips = config_item('proxy_ips'); + if ( ! empty($proxy_ips)) { - $proxies = preg_split('/[\s,]/', config_item('proxy_ips'), -1, PREG_SPLIT_NO_EMPTY); - $proxies = is_array($proxies) ? $proxies : array($proxies); + $proxy_ips = explode(',', str_replace(' ', '', $proxy_ips)); + foreach (array('HTTP_X_FORWARDED_FOR', 'HTTP_CLIENT_IP', 'HTTP_X_CLIENT_IP', 'HTTP_X_CLUSTER_CLIENT_IP') as $header) + { + if (($spoof = $this->server($header)) !== FALSE) + { + // Some proxies typically list the whole chain of IP + // addresses through which the client has reached us. + // e.g. client_ip, proxy_ip1, proxy_ip2, etc. + if (strpos($spoof, ',') !== FALSE) + { + $spoof = explode(',', $spoof, 2); + $spoof = $spoof[0]; + } - $this->ip_address = in_array($_SERVER['REMOTE_ADDR'], $proxies) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; - } - elseif ($this->server('REMOTE_ADDR') AND $this->server('HTTP_CLIENT_IP')) - { - $this->ip_address = $_SERVER['HTTP_CLIENT_IP']; - } - elseif ($this->server('REMOTE_ADDR')) - { - $this->ip_address = $_SERVER['REMOTE_ADDR']; - } - elseif ($this->server('HTTP_CLIENT_IP')) - { - $this->ip_address = $_SERVER['HTTP_CLIENT_IP']; - } - elseif ($this->server('HTTP_X_FORWARDED_FOR')) - { - $this->ip_address = $_SERVER['HTTP_X_FORWARDED_FOR']; - } + if ( ! $this->valid_ip($spoof)) + { + $spoof = NULL; + } + else + { + break; + } + } + } - if ($this->ip_address === FALSE) - { - $this->ip_address = '0.0.0.0'; - return $this->ip_address; + $this->ip_address = ($spoof !== NULL && in_array($_SERVER['REMOTE_ADDR'], $proxy_ips, TRUE)) + ? $spoof : $_SERVER['REMOTE_ADDR']; } - - if (strpos($this->ip_address, ',') !== FALSE) + else { - $x = explode(',', $this->ip_address); - $this->ip_address = trim(end($x)); + $this->ip_address = $_SERVER['REMOTE_ADDR']; } if ( ! $this->valid_ip($this->ip_address)) diff --git a/user_guide/changelog.html b/user_guide/changelog.html index 9c36eabff..d31839913 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -28,7 +28,7 @@
    - +

    CodeIgniter User Guide Version 2.1.2

    CodeIgniter User Guide Version 2.1.3

    @@ -63,9 +63,11 @@ Change Log

    Bug fixes for 2.1.3:

    • Fixed a bug (#1543) - File-based Caching method get_metadata() used a non-existent array key to look for the TTL value.
    • -
    • Fixed a bug (#1314) - Session Library method sess_destroy() didn't destroy the userdata array. +
    • Fixed a bug (#1314) - Session Library method sess_destroy() didn't destroy the userdata array.
    • Fixed a bug where the Profiler Library issued an E_WARNING error if Session userdata contains objects.
    • -
    • Fixed a bug (#1699) - Migration Library ignored the $config['migration_path'] setting. +
    • Fixed a bug (#1699) - Migration Library ignored the $config['migration_path'] setting.
    • +
    • Fixed a bug (#227) - Input Library allowed unconditional spoofing of HTTP clients' IP addresses through the HTTP_CLIENT_IP header.
    • +
    • Fixed a bug (#907) - Input Library ignored HTTP_X_CLUSTER_CLIENT_IP and HTTP_X_CLIENT_IP headers when checking for proxies.

    Version 2.1.2

    -- cgit v1.2.3-24-g4f1b From 481e42660f3c703789b4564402b5c47032c87c99 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Sat, 6 Oct 2012 15:42:56 +0300 Subject: Backport security fixes --- system/core/Security.php | 51 +++++++++++++++++++++++------------------------ user_guide/changelog.html | 2 ++ 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/system/core/Security.php b/system/core/Security.php index 7af240ded..00089d765 100755 --- a/system/core/Security.php +++ b/system/core/Security.php @@ -98,26 +98,32 @@ class CI_Security { /** * Constructor + * + * @return void */ public function __construct() { - // CSRF config - foreach(array('csrf_expire', 'csrf_token_name', 'csrf_cookie_name') as $key) + // Is CSRF protection enabled? + if (config_item('csrf_protection') === TRUE) { - if (FALSE !== ($val = config_item($key))) + // CSRF config + foreach (array('csrf_expire', 'csrf_token_name', 'csrf_cookie_name') as $key) { - $this->{'_'.$key} = $val; + if (FALSE !== ($val = config_item($key))) + { + $this->{'_'.$key} = $val; + } } - } - // Append application specific cookie prefix - if (config_item('cookie_prefix')) - { - $this->_csrf_cookie_name = config_item('cookie_prefix').$this->_csrf_cookie_name; - } + // Append application specific cookie prefix + if (config_item('cookie_prefix')) + { + $this->_csrf_cookie_name = config_item('cookie_prefix').$this->_csrf_cookie_name; + } - // Set the CSRF hash - $this->_csrf_set_hash(); + // Set the CSRF hash + $this->_csrf_set_hash(); + } log_message('debug', "Security Class Initialized"); } @@ -131,15 +137,14 @@ class CI_Security { */ public function csrf_verify() { - // If no POST data exists we will set the CSRF cookie - if (count($_POST) == 0) + // If it's not a POST request we will set the CSRF cookie + if (strtoupper($_SERVER['REQUEST_METHOD']) !== 'POST') { return $this->csrf_set_cookie(); } // Do the tokens exist in both the _POST and _COOKIE arrays? - if ( ! isset($_POST[$this->_csrf_token_name]) OR - ! isset($_COOKIE[$this->_csrf_cookie_name])) + if ( ! isset($_POST[$this->_csrf_token_name], $_COOKIE[$this->_csrf_cookie_name])) { $this->csrf_show_error(); } @@ -159,7 +164,7 @@ class CI_Security { $this->_csrf_set_hash(); $this->csrf_set_cookie(); - log_message('debug', "CSRF token verified "); + log_message('debug', 'CSRF token verified'); return $this; } @@ -176,14 +181,9 @@ class CI_Security { $expire = time() + $this->_csrf_expire; $secure_cookie = (config_item('cookie_secure') === TRUE) ? 1 : 0; - if ($secure_cookie) + if ($secure_cookie && (empty($_SERVER['HTTPS']) OR strtolower($_SERVER['HTTPS']) === 'off')) { - $req = isset($_SERVER['HTTPS']) ? $_SERVER['HTTPS'] : FALSE; - - if ( ! $req OR $req == 'off') - { - return FALSE; - } + return FALSE; } setcookie($this->_csrf_cookie_name, $this->_csrf_hash, $expire, config_item('cookie_path'), config_item('cookie_domain'), $secure_cookie); @@ -871,7 +871,6 @@ class CI_Security { } } -// END Security Class /* End of file Security.php */ -/* Location: ./system/libraries/Security.php */ +/* Location: ./system/libraries/Security.php */ \ No newline at end of file diff --git a/user_guide/changelog.html b/user_guide/changelog.html index d31839913..1c89f16be 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -68,6 +68,8 @@ Change Log
  • Fixed a bug (#1699) - Migration Library ignored the $config['migration_path'] setting.
  • Fixed a bug (#227) - Input Library allowed unconditional spoofing of HTTP clients' IP addresses through the HTTP_CLIENT_IP header.
  • Fixed a bug (#907) - Input Library ignored HTTP_X_CLUSTER_CLIENT_IP and HTTP_X_CLIENT_IP headers when checking for proxies.
  • +
  • Fixed a bug (#940) - csrf_verify() used to set the CSRF cookie while processing a POST request with no actual POST data, which resulted in validating a request that should be considered invalid.
  • +
  • Fixed a bug in the Security Library where a CSRF cookie was created even if $config['csrf_protection'] is set tot FALSE.
  • Version 2.1.2

    -- cgit v1.2.3-24-g4f1b From 05b3877a792caa23cb4503a976b8c85dec47335f Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Mon, 8 Oct 2012 00:12:10 +0300 Subject: Bump version number to 2.1.3 --- system/core/CodeIgniter.php | 2 +- system/core/Input.php | 4 +- user_guide/changelog.html | 2 +- user_guide/database/active_record.html | 2 +- user_guide/database/caching.html | 2 +- user_guide/database/call_function.html | 2 +- user_guide/database/configuration.html | 2 +- user_guide/database/connecting.html | 2 +- user_guide/database/examples.html | 2 +- user_guide/database/fields.html | 2 +- user_guide/database/forge.html | 2 +- user_guide/database/helpers.html | 2 +- user_guide/database/index.html | 2 +- user_guide/database/queries.html | 2 +- user_guide/database/results.html | 2 +- user_guide/database/table_data.html | 2 +- user_guide/database/transactions.html | 2 +- user_guide/database/utilities.html | 2 +- user_guide/doc_style/index.html | 2 +- user_guide/general/alternative_php.html | 2 +- user_guide/general/ancillary_classes.html | 2 +- user_guide/general/autoloader.html | 2 +- user_guide/general/caching.html | 2 +- user_guide/general/cli.html | 2 +- user_guide/general/common_functions.html | 2 +- user_guide/general/controllers.html | 2 +- user_guide/general/core_classes.html | 2 +- user_guide/general/creating_drivers.html | 2 +- user_guide/general/creating_libraries.html | 2 +- user_guide/general/credits.html | 2 +- user_guide/general/drivers.html | 2 +- user_guide/general/environments.html | 2 +- user_guide/general/errors.html | 2 +- user_guide/general/helpers.html | 2 +- user_guide/general/hooks.html | 2 +- user_guide/general/libraries.html | 2 +- user_guide/general/managing_apps.html | 2 +- user_guide/general/models.html | 2 +- user_guide/general/profiling.html | 2 +- user_guide/general/quick_reference.html | 2 +- user_guide/general/requirements.html | 2 +- user_guide/general/reserved_names.html | 2 +- user_guide/general/routing.html | 2 +- user_guide/general/security.html | 2 +- user_guide/general/styleguide.html | 2 +- user_guide/general/urls.html | 2 +- user_guide/general/views.html | 2 +- user_guide/helpers/array_helper.html | 2 +- user_guide/helpers/captcha_helper.html | 2 +- user_guide/helpers/cookie_helper.html | 2 +- user_guide/helpers/date_helper.html | 2 +- user_guide/helpers/directory_helper.html | 2 +- user_guide/helpers/download_helper.html | 2 +- user_guide/helpers/email_helper.html | 2 +- user_guide/helpers/file_helper.html | 2 +- user_guide/helpers/form_helper.html | 2 +- user_guide/helpers/html_helper.html | 2 +- user_guide/helpers/inflector_helper.html | 2 +- user_guide/helpers/language_helper.html | 2 +- user_guide/helpers/number_helper.html | 2 +- user_guide/helpers/path_helper.html | 2 +- user_guide/helpers/security_helper.html | 2 +- user_guide/helpers/smiley_helper.html | 2 +- user_guide/helpers/string_helper.html | 2 +- user_guide/helpers/text_helper.html | 2 +- user_guide/helpers/typography_helper.html | 2 +- user_guide/helpers/url_helper.html | 2 +- user_guide/helpers/xml_helper.html | 2 +- user_guide/index.html | 2 +- user_guide/installation/downloads.html | 5 +- user_guide/installation/index.html | 2 +- user_guide/installation/troubleshooting.html | 2 +- user_guide/installation/upgrade_120.html | 2 +- user_guide/installation/upgrade_130.html | 2 +- user_guide/installation/upgrade_131.html | 2 +- user_guide/installation/upgrade_132.html | 2 +- user_guide/installation/upgrade_133.html | 2 +- user_guide/installation/upgrade_140.html | 2 +- user_guide/installation/upgrade_141.html | 2 +- user_guide/installation/upgrade_150.html | 2 +- user_guide/installation/upgrade_152.html | 2 +- user_guide/installation/upgrade_153.html | 2 +- user_guide/installation/upgrade_154.html | 2 +- user_guide/installation/upgrade_160.html | 2 +- user_guide/installation/upgrade_161.html | 2 +- user_guide/installation/upgrade_162.html | 2 +- user_guide/installation/upgrade_163.html | 2 +- user_guide/installation/upgrade_170.html | 2 +- user_guide/installation/upgrade_171.html | 2 +- user_guide/installation/upgrade_172.html | 2 +- user_guide/installation/upgrade_200.html | 2 +- user_guide/installation/upgrade_201.html | 2 +- user_guide/installation/upgrade_202.html | 2 +- user_guide/installation/upgrade_203.html | 2 +- user_guide/installation/upgrade_210.html | 2 +- user_guide/installation/upgrade_211.html | 2 +- user_guide/installation/upgrade_212.html | 2 +- user_guide/installation/upgrade_213.html | 84 ++++++++++++++++++++++++++++ user_guide/installation/upgrade_b11.html | 2 +- user_guide/installation/upgrading.html | 3 +- user_guide/libraries/benchmark.html | 2 +- user_guide/libraries/caching.html | 2 +- user_guide/libraries/calendar.html | 2 +- user_guide/libraries/cart.html | 2 +- user_guide/libraries/config.html | 2 +- user_guide/libraries/email.html | 2 +- user_guide/libraries/encryption.html | 2 +- user_guide/libraries/file_uploading.html | 2 +- user_guide/libraries/form_validation.html | 2 +- user_guide/libraries/ftp.html | 2 +- user_guide/libraries/image_lib.html | 2 +- user_guide/libraries/input.html | 2 +- user_guide/libraries/javascript.html | 2 +- user_guide/libraries/language.html | 2 +- user_guide/libraries/loader.html | 2 +- user_guide/libraries/migration.html | 2 +- user_guide/libraries/output.html | 2 +- user_guide/libraries/pagination.html | 2 +- user_guide/libraries/parser.html | 2 +- user_guide/libraries/security.html | 2 +- user_guide/libraries/sessions.html | 2 +- user_guide/libraries/table.html | 2 +- user_guide/libraries/trackback.html | 2 +- user_guide/libraries/typography.html | 2 +- user_guide/libraries/unit_testing.html | 2 +- user_guide/libraries/uri.html | 2 +- user_guide/libraries/user_agent.html | 2 +- user_guide/libraries/xmlrpc.html | 2 +- user_guide/libraries/zip.html | 2 +- user_guide/license.html | 2 +- user_guide/overview/appflow.html | 2 +- user_guide/overview/at_a_glance.html | 2 +- user_guide/overview/cheatsheets.html | 2 +- user_guide/overview/features.html | 2 +- user_guide/overview/getting_started.html | 2 +- user_guide/overview/goals.html | 2 +- user_guide/overview/index.html | 2 +- user_guide/overview/mvc.html | 2 +- user_guide/toc.html | 2 +- user_guide/tutorial/conclusion.html | 2 +- user_guide/tutorial/create_news_items.html | 2 +- user_guide/tutorial/hard_coded_pages.html | 2 +- user_guide/tutorial/index.html | 2 +- user_guide/tutorial/news_section.html | 2 +- user_guide/tutorial/static_pages.html | 2 +- 145 files changed, 232 insertions(+), 146 deletions(-) create mode 100644 user_guide/installation/upgrade_213.html diff --git a/system/core/CodeIgniter.php b/system/core/CodeIgniter.php index cd3333331..c16c79c09 100755 --- a/system/core/CodeIgniter.php +++ b/system/core/CodeIgniter.php @@ -33,7 +33,7 @@ * @var string * */ - define('CI_VERSION', '2.1.2'); + define('CI_VERSION', '2.1.3'); /** * CodeIgniter Branch (Core = TRUE, Reactor = FALSE) diff --git a/system/core/Input.php b/system/core/Input.php index 66e02ba00..fa26777a1 100755 --- a/system/core/Input.php +++ b/system/core/Input.php @@ -334,7 +334,7 @@ class CI_Input { if ( ! $this->valid_ip($spoof)) { - $spoof = NULL; + $spoof = FALSE; } else { @@ -343,7 +343,7 @@ class CI_Input { } } - $this->ip_address = ($spoof !== NULL && in_array($_SERVER['REMOTE_ADDR'], $proxy_ips, TRUE)) + $this->ip_address = ($spoof !== FALSE && in_array($_SERVER['REMOTE_ADDR'], $proxy_ips, TRUE)) ? $spoof : $_SERVER['REMOTE_ADDR']; } else diff --git a/user_guide/changelog.html b/user_guide/changelog.html index 1c89f16be..2923a6985 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -58,7 +58,7 @@ Change Log

    Change Log

    Version 2.1.3

    -

    Release Date: Not Released

    +

    Release Date: October 8, 2012

    Bug fixes for 2.1.3:

      diff --git a/user_guide/database/active_record.html b/user_guide/database/active_record.html index 4f30a012a..a16de380f 100644 --- a/user_guide/database/active_record.html +++ b/user_guide/database/active_record.html @@ -27,7 +27,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/database/caching.html b/user_guide/database/caching.html index 4ea64397e..1d881feb3 100644 --- a/user_guide/database/caching.html +++ b/user_guide/database/caching.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/database/call_function.html b/user_guide/database/call_function.html index 375c29335..955ebb498 100644 --- a/user_guide/database/call_function.html +++ b/user_guide/database/call_function.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/database/configuration.html b/user_guide/database/configuration.html index 08286f732..a3b3167ae 100644 --- a/user_guide/database/configuration.html +++ b/user_guide/database/configuration.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/database/connecting.html b/user_guide/database/connecting.html index 4e8cb6242..61e8fc4f9 100644 --- a/user_guide/database/connecting.html +++ b/user_guide/database/connecting.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/database/examples.html b/user_guide/database/examples.html index de3cda09a..f427ab402 100644 --- a/user_guide/database/examples.html +++ b/user_guide/database/examples.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/database/fields.html b/user_guide/database/fields.html index 9cef9a58e..ad71fb352 100644 --- a/user_guide/database/fields.html +++ b/user_guide/database/fields.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/database/forge.html b/user_guide/database/forge.html index 22880c5b0..d6bf10a8d 100644 --- a/user_guide/database/forge.html +++ b/user_guide/database/forge.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/database/helpers.html b/user_guide/database/helpers.html index 3d1737b0b..1cb92d6a5 100644 --- a/user_guide/database/helpers.html +++ b/user_guide/database/helpers.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/database/index.html b/user_guide/database/index.html index b70118216..941197b0b 100644 --- a/user_guide/database/index.html +++ b/user_guide/database/index.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/database/queries.html b/user_guide/database/queries.html index 6197b7496..aa6941442 100644 --- a/user_guide/database/queries.html +++ b/user_guide/database/queries.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/database/results.html b/user_guide/database/results.html index b35ca3ee1..0f7108202 100644 --- a/user_guide/database/results.html +++ b/user_guide/database/results.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/database/table_data.html b/user_guide/database/table_data.html index c38784354..b1e467da9 100644 --- a/user_guide/database/table_data.html +++ b/user_guide/database/table_data.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/database/transactions.html b/user_guide/database/transactions.html index ed0b49cab..7a3d93605 100644 --- a/user_guide/database/transactions.html +++ b/user_guide/database/transactions.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/database/utilities.html b/user_guide/database/utilities.html index cb569d451..fea59f1a2 100644 --- a/user_guide/database/utilities.html +++ b/user_guide/database/utilities.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/doc_style/index.html b/user_guide/doc_style/index.html index 05d02ff1b..a44f8609f 100644 --- a/user_guide/doc_style/index.html +++ b/user_guide/doc_style/index.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/alternative_php.html b/user_guide/general/alternative_php.html index b2fad6926..2705cc16f 100644 --- a/user_guide/general/alternative_php.html +++ b/user_guide/general/alternative_php.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/ancillary_classes.html b/user_guide/general/ancillary_classes.html index 492020763..90724034e 100644 --- a/user_guide/general/ancillary_classes.html +++ b/user_guide/general/ancillary_classes.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/autoloader.html b/user_guide/general/autoloader.html index 0f173f31c..8410335ca 100644 --- a/user_guide/general/autoloader.html +++ b/user_guide/general/autoloader.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/caching.html b/user_guide/general/caching.html index ae22e75a5..229525158 100644 --- a/user_guide/general/caching.html +++ b/user_guide/general/caching.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/cli.html b/user_guide/general/cli.html index d0191078b..4be648d10 100644 --- a/user_guide/general/cli.html +++ b/user_guide/general/cli.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/common_functions.html b/user_guide/general/common_functions.html index c1c3e01d2..b48f3f526 100644 --- a/user_guide/general/common_functions.html +++ b/user_guide/general/common_functions.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/controllers.html b/user_guide/general/controllers.html index f3c2029f6..82f9ca9b5 100644 --- a/user_guide/general/controllers.html +++ b/user_guide/general/controllers.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/core_classes.html b/user_guide/general/core_classes.html index 766a557ff..ba8777162 100644 --- a/user_guide/general/core_classes.html +++ b/user_guide/general/core_classes.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/creating_drivers.html b/user_guide/general/creating_drivers.html index bd0268ae9..c60d8b5d1 100644 --- a/user_guide/general/creating_drivers.html +++ b/user_guide/general/creating_drivers.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/creating_libraries.html b/user_guide/general/creating_libraries.html index 5d0e43b08..cd603af18 100644 --- a/user_guide/general/creating_libraries.html +++ b/user_guide/general/creating_libraries.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/credits.html b/user_guide/general/credits.html index e795590ee..218c4fe00 100644 --- a/user_guide/general/credits.html +++ b/user_guide/general/credits.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/drivers.html b/user_guide/general/drivers.html index ba87b294f..a4874d3a7 100644 --- a/user_guide/general/drivers.html +++ b/user_guide/general/drivers.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/environments.html b/user_guide/general/environments.html index 86506412c..55e82b780 100644 --- a/user_guide/general/environments.html +++ b/user_guide/general/environments.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/errors.html b/user_guide/general/errors.html index a83173324..c73651b42 100644 --- a/user_guide/general/errors.html +++ b/user_guide/general/errors.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/helpers.html b/user_guide/general/helpers.html index 5b13785ad..83b04ffce 100644 --- a/user_guide/general/helpers.html +++ b/user_guide/general/helpers.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/hooks.html b/user_guide/general/hooks.html index f46e418f4..aa4321cb1 100644 --- a/user_guide/general/hooks.html +++ b/user_guide/general/hooks.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/libraries.html b/user_guide/general/libraries.html index 3f93b1f4c..e4b1a9298 100644 --- a/user_guide/general/libraries.html +++ b/user_guide/general/libraries.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/managing_apps.html b/user_guide/general/managing_apps.html index 977bf36da..32deea4a5 100644 --- a/user_guide/general/managing_apps.html +++ b/user_guide/general/managing_apps.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/models.html b/user_guide/general/models.html index a49c27c62..e07f694e4 100644 --- a/user_guide/general/models.html +++ b/user_guide/general/models.html @@ -27,7 +27,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/profiling.html b/user_guide/general/profiling.html index 15a64877f..f8b3b4321 100644 --- a/user_guide/general/profiling.html +++ b/user_guide/general/profiling.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/quick_reference.html b/user_guide/general/quick_reference.html index 008307b9c..aabdef512 100644 --- a/user_guide/general/quick_reference.html +++ b/user_guide/general/quick_reference.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/requirements.html b/user_guide/general/requirements.html index fffb457f3..f8b3d8228 100644 --- a/user_guide/general/requirements.html +++ b/user_guide/general/requirements.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/reserved_names.html b/user_guide/general/reserved_names.html index 29ae1de4f..fd86f06b1 100644 --- a/user_guide/general/reserved_names.html +++ b/user_guide/general/reserved_names.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/routing.html b/user_guide/general/routing.html index 839f9d3be..8ba47431b 100644 --- a/user_guide/general/routing.html +++ b/user_guide/general/routing.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/security.html b/user_guide/general/security.html index bf6879ddc..9c603c694 100644 --- a/user_guide/general/security.html +++ b/user_guide/general/security.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/styleguide.html b/user_guide/general/styleguide.html index b0000aa58..76bacc581 100644 --- a/user_guide/general/styleguide.html +++ b/user_guide/general/styleguide.html @@ -34,7 +34,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/urls.html b/user_guide/general/urls.html index a6c4cd634..55ab86f24 100644 --- a/user_guide/general/urls.html +++ b/user_guide/general/urls.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/general/views.html b/user_guide/general/views.html index c2685ff3e..f010bc803 100644 --- a/user_guide/general/views.html +++ b/user_guide/general/views.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/array_helper.html b/user_guide/helpers/array_helper.html index 78037fdfc..b95d4fd15 100644 --- a/user_guide/helpers/array_helper.html +++ b/user_guide/helpers/array_helper.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/captcha_helper.html b/user_guide/helpers/captcha_helper.html index 9f1a59992..f9aa89b95 100644 --- a/user_guide/helpers/captcha_helper.html +++ b/user_guide/helpers/captcha_helper.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/cookie_helper.html b/user_guide/helpers/cookie_helper.html index b5e47f6e1..09ee7405f 100644 --- a/user_guide/helpers/cookie_helper.html +++ b/user_guide/helpers/cookie_helper.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/date_helper.html b/user_guide/helpers/date_helper.html index 902ec3355..5a0f0bd3f 100644 --- a/user_guide/helpers/date_helper.html +++ b/user_guide/helpers/date_helper.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/directory_helper.html b/user_guide/helpers/directory_helper.html index 7cab0b166..649e0c4ea 100644 --- a/user_guide/helpers/directory_helper.html +++ b/user_guide/helpers/directory_helper.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/download_helper.html b/user_guide/helpers/download_helper.html index 7054fbabf..266e5ea65 100644 --- a/user_guide/helpers/download_helper.html +++ b/user_guide/helpers/download_helper.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/email_helper.html b/user_guide/helpers/email_helper.html index 00af99a09..7bfd5e600 100644 --- a/user_guide/helpers/email_helper.html +++ b/user_guide/helpers/email_helper.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/file_helper.html b/user_guide/helpers/file_helper.html index 22a34f99d..3624a27ab 100644 --- a/user_guide/helpers/file_helper.html +++ b/user_guide/helpers/file_helper.html @@ -27,7 +27,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/form_helper.html b/user_guide/helpers/form_helper.html index a8348c09b..081131116 100644 --- a/user_guide/helpers/form_helper.html +++ b/user_guide/helpers/form_helper.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/html_helper.html b/user_guide/helpers/html_helper.html index f778d9f5e..8e6ab2241 100644 --- a/user_guide/helpers/html_helper.html +++ b/user_guide/helpers/html_helper.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/inflector_helper.html b/user_guide/helpers/inflector_helper.html index 17db82d6c..89604ab5c 100644 --- a/user_guide/helpers/inflector_helper.html +++ b/user_guide/helpers/inflector_helper.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/language_helper.html b/user_guide/helpers/language_helper.html index 42e90a4a7..0a1ac9e2a 100644 --- a/user_guide/helpers/language_helper.html +++ b/user_guide/helpers/language_helper.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/number_helper.html b/user_guide/helpers/number_helper.html index c16cdcfe8..74dbd5072 100644 --- a/user_guide/helpers/number_helper.html +++ b/user_guide/helpers/number_helper.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/path_helper.html b/user_guide/helpers/path_helper.html index 1ecb6d201..aa53e318f 100644 --- a/user_guide/helpers/path_helper.html +++ b/user_guide/helpers/path_helper.html @@ -27,7 +27,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/security_helper.html b/user_guide/helpers/security_helper.html index 3876c0070..95f38c94c 100644 --- a/user_guide/helpers/security_helper.html +++ b/user_guide/helpers/security_helper.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/smiley_helper.html b/user_guide/helpers/smiley_helper.html index 1abcbfc51..29f0894df 100644 --- a/user_guide/helpers/smiley_helper.html +++ b/user_guide/helpers/smiley_helper.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/string_helper.html b/user_guide/helpers/string_helper.html index f70fd6f73..2931021b2 100644 --- a/user_guide/helpers/string_helper.html +++ b/user_guide/helpers/string_helper.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/text_helper.html b/user_guide/helpers/text_helper.html index 316fbafbd..e404bfe39 100644 --- a/user_guide/helpers/text_helper.html +++ b/user_guide/helpers/text_helper.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/typography_helper.html b/user_guide/helpers/typography_helper.html index fb4d98632..f0fe47e82 100644 --- a/user_guide/helpers/typography_helper.html +++ b/user_guide/helpers/typography_helper.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/url_helper.html b/user_guide/helpers/url_helper.html index fbd47b048..df3d496de 100644 --- a/user_guide/helpers/url_helper.html +++ b/user_guide/helpers/url_helper.html @@ -27,7 +27,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/helpers/xml_helper.html b/user_guide/helpers/xml_helper.html index 60671ad3e..fd54d7ccd 100644 --- a/user_guide/helpers/xml_helper.html +++ b/user_guide/helpers/xml_helper.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/index.html b/user_guide/index.html index ededb3a5a..8aa21b1bc 100644 --- a/user_guide/index.html +++ b/user_guide/index.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      diff --git a/user_guide/installation/downloads.html b/user_guide/installation/downloads.html index 1d6bf5b53..245ee891a 100644 --- a/user_guide/installation/downloads.html +++ b/user_guide/installation/downloads.html @@ -28,7 +28,7 @@
      - +

      CodeIgniter User Guide Version 2.1.2

      CodeIgniter User Guide Version 2.1.3

      @@ -58,7 +58,8 @@ Downloading CodeIgniter

      Downloading CodeIgniter

        -
      • CodeIgniter V 2.1.2 (Current version)
      • +
      • CodeIgniter V 2.1.3 (Current version)
      • +
      • CodeIgniter V 2.1.2
      • CodeIgniter V 2.1.1
      • CodeIgniter V 2.1.0
      • CodeIgniter V 2.0.3
      • diff --git a/user_guide/installation/index.html b/user_guide/installation/index.html index d89c8f028..cca3d497f 100644 --- a/user_guide/installation/index.html +++ b/user_guide/installation/index.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/troubleshooting.html b/user_guide/installation/troubleshooting.html index 33ef24a2b..2f000a3fc 100644 --- a/user_guide/installation/troubleshooting.html +++ b/user_guide/installation/troubleshooting.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_120.html b/user_guide/installation/upgrade_120.html index 1f4de9df6..2a54b84c3 100644 --- a/user_guide/installation/upgrade_120.html +++ b/user_guide/installation/upgrade_120.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_130.html b/user_guide/installation/upgrade_130.html index 3a1c7dbc5..b84121f3c 100644 --- a/user_guide/installation/upgrade_130.html +++ b/user_guide/installation/upgrade_130.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_131.html b/user_guide/installation/upgrade_131.html index 6fbb9e5fb..7e066bc61 100644 --- a/user_guide/installation/upgrade_131.html +++ b/user_guide/installation/upgrade_131.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_132.html b/user_guide/installation/upgrade_132.html index dfebc2265..a15ade3eb 100644 --- a/user_guide/installation/upgrade_132.html +++ b/user_guide/installation/upgrade_132.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_133.html b/user_guide/installation/upgrade_133.html index 159a6a18e..a040cc839 100644 --- a/user_guide/installation/upgrade_133.html +++ b/user_guide/installation/upgrade_133.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_140.html b/user_guide/installation/upgrade_140.html index 3a8aba555..208cb1e96 100644 --- a/user_guide/installation/upgrade_140.html +++ b/user_guide/installation/upgrade_140.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_141.html b/user_guide/installation/upgrade_141.html index 2e574866d..de5bd159a 100644 --- a/user_guide/installation/upgrade_141.html +++ b/user_guide/installation/upgrade_141.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_150.html b/user_guide/installation/upgrade_150.html index b6342c5a9..e456cb49d 100644 --- a/user_guide/installation/upgrade_150.html +++ b/user_guide/installation/upgrade_150.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_152.html b/user_guide/installation/upgrade_152.html index c907cf567..e33f0de60 100644 --- a/user_guide/installation/upgrade_152.html +++ b/user_guide/installation/upgrade_152.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_153.html b/user_guide/installation/upgrade_153.html index c8434bb36..574bd4b04 100644 --- a/user_guide/installation/upgrade_153.html +++ b/user_guide/installation/upgrade_153.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_154.html b/user_guide/installation/upgrade_154.html index dd1666794..11906438a 100644 --- a/user_guide/installation/upgrade_154.html +++ b/user_guide/installation/upgrade_154.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_160.html b/user_guide/installation/upgrade_160.html index 6babba9aa..c9d6ccb52 100644 --- a/user_guide/installation/upgrade_160.html +++ b/user_guide/installation/upgrade_160.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_161.html b/user_guide/installation/upgrade_161.html index cc6323b01..1fdd3a2bb 100644 --- a/user_guide/installation/upgrade_161.html +++ b/user_guide/installation/upgrade_161.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_162.html b/user_guide/installation/upgrade_162.html index 3d010178d..98ccde8dd 100644 --- a/user_guide/installation/upgrade_162.html +++ b/user_guide/installation/upgrade_162.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_163.html b/user_guide/installation/upgrade_163.html index 3875b1330..38f2d4c9c 100644 --- a/user_guide/installation/upgrade_163.html +++ b/user_guide/installation/upgrade_163.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_170.html b/user_guide/installation/upgrade_170.html index 494d9b4bd..94c4eb86d 100644 --- a/user_guide/installation/upgrade_170.html +++ b/user_guide/installation/upgrade_170.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_171.html b/user_guide/installation/upgrade_171.html index 97e8caef7..dfd68e6a9 100644 --- a/user_guide/installation/upgrade_171.html +++ b/user_guide/installation/upgrade_171.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_172.html b/user_guide/installation/upgrade_172.html index 4567c1005..85234f85a 100644 --- a/user_guide/installation/upgrade_172.html +++ b/user_guide/installation/upgrade_172.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_200.html b/user_guide/installation/upgrade_200.html index 6427e9fbd..f51ac0661 100644 --- a/user_guide/installation/upgrade_200.html +++ b/user_guide/installation/upgrade_200.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_201.html b/user_guide/installation/upgrade_201.html index 7a1aa4083..557d8f0f0 100644 --- a/user_guide/installation/upgrade_201.html +++ b/user_guide/installation/upgrade_201.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_202.html b/user_guide/installation/upgrade_202.html index ab5828ef1..064198190 100644 --- a/user_guide/installation/upgrade_202.html +++ b/user_guide/installation/upgrade_202.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_203.html b/user_guide/installation/upgrade_203.html index 8ebcf8b9b..d3648fa15 100644 --- a/user_guide/installation/upgrade_203.html +++ b/user_guide/installation/upgrade_203.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_210.html b/user_guide/installation/upgrade_210.html index 9e0357cb7..0a0e0dd2d 100644 --- a/user_guide/installation/upgrade_210.html +++ b/user_guide/installation/upgrade_210.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_211.html b/user_guide/installation/upgrade_211.html index 5a377d1a0..67891d96e 100644 --- a/user_guide/installation/upgrade_211.html +++ b/user_guide/installation/upgrade_211.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_212.html b/user_guide/installation/upgrade_212.html index 00f0bcbc6..ffd169e06 100644 --- a/user_guide/installation/upgrade_212.html +++ b/user_guide/installation/upgrade_212.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrade_213.html b/user_guide/installation/upgrade_213.html new file mode 100644 index 000000000..14286a509 --- /dev/null +++ b/user_guide/installation/upgrade_213.html @@ -0,0 +1,84 @@ + + + + + +Upgrading from 2.1.2 to 2.1.3 : CodeIgniter User Guide + + + + + + + + + + + + + + + + + + + + + +
        + + + + + +

        CodeIgniter User Guide Version 2.1.3

        +
        + + + + + + + + + +
        + + +
        + + + +
        + +

        Upgrading from 2.1.2 to 2.1.3

        + +

        Before performing an update you should take your site offline by replacing the index.php file with a static one.

        + +

        Step 1: Update your CodeIgniter files

        + +

        Replace all files and directories in your "system" folder and replace your index.php file. If any modifications were made to your index.php they will need to be made fresh in this new one.

        + +

        Note: If you have any custom developed files in these folders please make copies of them first.

        + +
        + + + + + + + \ No newline at end of file diff --git a/user_guide/installation/upgrade_b11.html b/user_guide/installation/upgrade_b11.html index d315b14da..0b9113a26 100644 --- a/user_guide/installation/upgrade_b11.html +++ b/user_guide/installation/upgrade_b11.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.2

        CodeIgniter User Guide Version 2.1.3

        diff --git a/user_guide/installation/upgrading.html b/user_guide/installation/upgrading.html index 4e159f5e2..eab521047 100644 --- a/user_guide/installation/upgrading.html +++ b/user_guide/installation/upgrading.html @@ -28,7 +28,7 @@
        - +

        CodeIgniter User Guide Version 2.1.1

        CodeIgniter User Guide Version 2.1.3

        @@ -60,6 +60,7 @@ Upgrading from a Previous Version

        Please read the upgrade notes corresponding to the version you are upgrading from.

          +
        • Upgrading from 2.1.2 to 2.1.3
        • Upgrading from 2.1.1 to 2.1.2
        • Upgrading from 2.1.0 to 2.1.1
        • Upgrading from 2.0.3 to 2.1.0
        • diff --git a/user_guide/libraries/benchmark.html b/user_guide/libraries/benchmark.html index 688950d44..163aaf126 100644 --- a/user_guide/libraries/benchmark.html +++ b/user_guide/libraries/benchmark.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/caching.html b/user_guide/libraries/caching.html index 9211fb1a7..074df945b 100644 --- a/user_guide/libraries/caching.html +++ b/user_guide/libraries/caching.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/calendar.html b/user_guide/libraries/calendar.html index d0d1d6128..6c0c4a93b 100644 --- a/user_guide/libraries/calendar.html +++ b/user_guide/libraries/calendar.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/cart.html b/user_guide/libraries/cart.html index 8c78b0825..cddad9e63 100644 --- a/user_guide/libraries/cart.html +++ b/user_guide/libraries/cart.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/config.html b/user_guide/libraries/config.html index 38cdab5cb..5e5e0780b 100644 --- a/user_guide/libraries/config.html +++ b/user_guide/libraries/config.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/email.html b/user_guide/libraries/email.html index 53fdb54ad..aea2e35eb 100644 --- a/user_guide/libraries/email.html +++ b/user_guide/libraries/email.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/encryption.html b/user_guide/libraries/encryption.html index 57643c243..61ba877bd 100644 --- a/user_guide/libraries/encryption.html +++ b/user_guide/libraries/encryption.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/file_uploading.html b/user_guide/libraries/file_uploading.html index 6e137e3be..b17cea429 100644 --- a/user_guide/libraries/file_uploading.html +++ b/user_guide/libraries/file_uploading.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/form_validation.html b/user_guide/libraries/form_validation.html index f00b93a13..0ff13d587 100644 --- a/user_guide/libraries/form_validation.html +++ b/user_guide/libraries/form_validation.html @@ -27,7 +27,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/ftp.html b/user_guide/libraries/ftp.html index b287d2bc0..922ea9a6a 100644 --- a/user_guide/libraries/ftp.html +++ b/user_guide/libraries/ftp.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/image_lib.html b/user_guide/libraries/image_lib.html index 20f630cbe..9f9122770 100644 --- a/user_guide/libraries/image_lib.html +++ b/user_guide/libraries/image_lib.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/input.html b/user_guide/libraries/input.html index 38f2d5cbc..31f3d6260 100644 --- a/user_guide/libraries/input.html +++ b/user_guide/libraries/input.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/javascript.html b/user_guide/libraries/javascript.html index 673794505..5f69e0d90 100644 --- a/user_guide/libraries/javascript.html +++ b/user_guide/libraries/javascript.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/language.html b/user_guide/libraries/language.html index 38267b9e8..c724579ef 100644 --- a/user_guide/libraries/language.html +++ b/user_guide/libraries/language.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/loader.html b/user_guide/libraries/loader.html index bd9753f48..01ec938cb 100644 --- a/user_guide/libraries/loader.html +++ b/user_guide/libraries/loader.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/migration.html b/user_guide/libraries/migration.html index 703011e20..1b7bdfc8b 100644 --- a/user_guide/libraries/migration.html +++ b/user_guide/libraries/migration.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/output.html b/user_guide/libraries/output.html index 3fffb7c0d..481fd5447 100644 --- a/user_guide/libraries/output.html +++ b/user_guide/libraries/output.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/pagination.html b/user_guide/libraries/pagination.html index ac3403e04..7caf382d4 100644 --- a/user_guide/libraries/pagination.html +++ b/user_guide/libraries/pagination.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/parser.html b/user_guide/libraries/parser.html index 4106686a7..b27a83e17 100644 --- a/user_guide/libraries/parser.html +++ b/user_guide/libraries/parser.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/security.html b/user_guide/libraries/security.html index e9a8fcac0..f98ddabcf 100644 --- a/user_guide/libraries/security.html +++ b/user_guide/libraries/security.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/sessions.html b/user_guide/libraries/sessions.html index 6a6555e6a..85c0fe9fb 100644 --- a/user_guide/libraries/sessions.html +++ b/user_guide/libraries/sessions.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/table.html b/user_guide/libraries/table.html index 5d07a13c6..2c48ef0e2 100644 --- a/user_guide/libraries/table.html +++ b/user_guide/libraries/table.html @@ -27,7 +27,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/trackback.html b/user_guide/libraries/trackback.html index 1725b6482..5a935faf6 100644 --- a/user_guide/libraries/trackback.html +++ b/user_guide/libraries/trackback.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/typography.html b/user_guide/libraries/typography.html index becd87af5..58c457a63 100644 --- a/user_guide/libraries/typography.html +++ b/user_guide/libraries/typography.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/unit_testing.html b/user_guide/libraries/unit_testing.html index a9a52a1b0..ed1ce28d1 100644 --- a/user_guide/libraries/unit_testing.html +++ b/user_guide/libraries/unit_testing.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/uri.html b/user_guide/libraries/uri.html index f7cfe8ded..e67863995 100644 --- a/user_guide/libraries/uri.html +++ b/user_guide/libraries/uri.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/user_agent.html b/user_guide/libraries/user_agent.html index 305f434e7..8f7a50098 100644 --- a/user_guide/libraries/user_agent.html +++ b/user_guide/libraries/user_agent.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/xmlrpc.html b/user_guide/libraries/xmlrpc.html index 965d30ac4..5b8777ebc 100644 --- a/user_guide/libraries/xmlrpc.html +++ b/user_guide/libraries/xmlrpc.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/libraries/zip.html b/user_guide/libraries/zip.html index 81ca1fa28..a2ed6476c 100644 --- a/user_guide/libraries/zip.html +++ b/user_guide/libraries/zip.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/license.html b/user_guide/license.html index 89e9e0563..890f73011 100644 --- a/user_guide/license.html +++ b/user_guide/license.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/overview/appflow.html b/user_guide/overview/appflow.html index 013d13456..cff5a0811 100644 --- a/user_guide/overview/appflow.html +++ b/user_guide/overview/appflow.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/overview/at_a_glance.html b/user_guide/overview/at_a_glance.html index 685dfc461..2c18a968c 100644 --- a/user_guide/overview/at_a_glance.html +++ b/user_guide/overview/at_a_glance.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/overview/cheatsheets.html b/user_guide/overview/cheatsheets.html index f639562a1..1330a7ef1 100644 --- a/user_guide/overview/cheatsheets.html +++ b/user_guide/overview/cheatsheets.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/overview/features.html b/user_guide/overview/features.html index 2881dcbe5..2e45f0c30 100644 --- a/user_guide/overview/features.html +++ b/user_guide/overview/features.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/overview/getting_started.html b/user_guide/overview/getting_started.html index 5c81fb14a..9def8d950 100644 --- a/user_guide/overview/getting_started.html +++ b/user_guide/overview/getting_started.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/overview/goals.html b/user_guide/overview/goals.html index e26df787b..990d2c4a1 100644 --- a/user_guide/overview/goals.html +++ b/user_guide/overview/goals.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/overview/index.html b/user_guide/overview/index.html index 49819e5df..dd68eae6e 100644 --- a/user_guide/overview/index.html +++ b/user_guide/overview/index.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/overview/mvc.html b/user_guide/overview/mvc.html index ac85ef2c8..2d8f7cf5c 100644 --- a/user_guide/overview/mvc.html +++ b/user_guide/overview/mvc.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/toc.html b/user_guide/toc.html index 2f1ea5e4e..92f15b908 100644 --- a/user_guide/toc.html +++ b/user_guide/toc.html @@ -29,7 +29,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/tutorial/conclusion.html b/user_guide/tutorial/conclusion.html index 349a88b08..a439ac131 100644 --- a/user_guide/tutorial/conclusion.html +++ b/user_guide/tutorial/conclusion.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/tutorial/create_news_items.html b/user_guide/tutorial/create_news_items.html index be82e7897..853044c0c 100644 --- a/user_guide/tutorial/create_news_items.html +++ b/user_guide/tutorial/create_news_items.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/tutorial/hard_coded_pages.html b/user_guide/tutorial/hard_coded_pages.html index 10022737c..2f4218222 100644 --- a/user_guide/tutorial/hard_coded_pages.html +++ b/user_guide/tutorial/hard_coded_pages.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/tutorial/index.html b/user_guide/tutorial/index.html index c37f40353..e5648f9e3 100644 --- a/user_guide/tutorial/index.html +++ b/user_guide/tutorial/index.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/tutorial/news_section.html b/user_guide/tutorial/news_section.html index c93831d7e..64c693246 100644 --- a/user_guide/tutorial/news_section.html +++ b/user_guide/tutorial/news_section.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          diff --git a/user_guide/tutorial/static_pages.html b/user_guide/tutorial/static_pages.html index 6a554bbff..13e406358 100644 --- a/user_guide/tutorial/static_pages.html +++ b/user_guide/tutorial/static_pages.html @@ -28,7 +28,7 @@
          - +

          CodeIgniter User Guide Version 2.1.2

          CodeIgniter User Guide Version 2.1.3

          -- cgit v1.2.3-24-g4f1b From 8f8436080ed60dbd680f2792d475bbed944df78c Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Mon, 8 Oct 2012 10:47:22 +0300 Subject: Fix issue #1715 --- system/core/Input.php | 8 ++++---- user_guide/changelog.html | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/system/core/Input.php b/system/core/Input.php index fa26777a1..218eed3d7 100755 --- a/system/core/Input.php +++ b/system/core/Input.php @@ -641,8 +641,8 @@ class CI_Input { $_SERVER['PHP_SELF'] = strip_tags($_SERVER['PHP_SELF']); - // CSRF Protection check - if ($this->_enable_csrf == TRUE) + // CSRF Protection check on HTTP requests + if ($this->_enable_csrf == TRUE && $this->is_cli_request()) { $this->security->csrf_verify(); } @@ -836,11 +836,11 @@ class CI_Input { * * Test to see if a request was made from the command line * - * @return boolean + * @return bool */ public function is_cli_request() { - return (php_sapi_name() == 'cli') or defined('STDIN'); + return (php_sapi_name() === 'cli' OR defined('STDIN')); } } diff --git a/user_guide/changelog.html b/user_guide/changelog.html index 2923a6985..9a13add37 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -70,6 +70,7 @@ Change Log
        • Fixed a bug (#907) - Input Library ignored HTTP_X_CLUSTER_CLIENT_IP and HTTP_X_CLIENT_IP headers when checking for proxies.
        • Fixed a bug (#940) - csrf_verify() used to set the CSRF cookie while processing a POST request with no actual POST data, which resulted in validating a request that should be considered invalid.
        • Fixed a bug in the Security Library where a CSRF cookie was created even if $config['csrf_protection'] is set tot FALSE.
        • +
        • Fixed a bug (#1715) - Input Library triggered csrf_verify() on CLI requests.

        Version 2.1.2

        -- cgit v1.2.3-24-g4f1b From 05e8c03b6742033cf88885cb86217cadca3a4567 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Mon, 8 Oct 2012 11:11:27 +0300 Subject: Really fix #1715 --- system/core/Input.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/core/Input.php b/system/core/Input.php index 218eed3d7..0c1f2b08e 100755 --- a/system/core/Input.php +++ b/system/core/Input.php @@ -642,7 +642,7 @@ class CI_Input { // CSRF Protection check on HTTP requests - if ($this->_enable_csrf == TRUE && $this->is_cli_request()) + if ($this->_enable_csrf == TRUE && ! $this->is_cli_request()) { $this->security->csrf_verify(); } -- cgit v1.2.3-24-g4f1b