Skip to content
Permalink
Browse files

Update CodeIgniter 2.2.1

  • Loading branch information...
maxsite committed Jan 26, 2015
1 parent cec339b commit 346a435df68e6af3a2942c2073f3358dbadaa68e
Showing with 685 additions and 670 deletions.
  1. +4 −3 system/core/Benchmark.php
  2. +5 −4 system/core/CodeIgniter.php
  3. +6 −10 system/core/Common.php
  4. +5 −4 system/core/Config.php
  5. +5 −4 system/core/Controller.php
  6. +4 −3 system/core/Exceptions.php
  7. +4 −3 system/core/Hooks.php
  8. +20 −3 system/core/Input.php
  9. +4 −3 system/core/Lang.php
  10. +4 −3 system/core/Loader.php
  11. +4 −3 system/core/Model.php
  12. +4 −3 system/core/Output.php
  13. +4 −3 system/core/Router.php
  14. +154 −155 system/core/Security.php
  15. +4 −3 system/core/URI.php
  16. +4 −3 system/core/Utf8.php
  17. +4 −3 system/database/DB.php
  18. +4 −4 system/database/DB_active_rec.php
  19. +4 −3 system/database/DB_cache.php
  20. +4 −3 system/database/DB_driver.php
  21. +5 −4 system/database/DB_forge.php
  22. +4 −3 system/database/DB_result.php
  23. +5 −4 system/database/DB_utility.php
  24. +5 −4 system/database/drivers/mysql/mysql_driver.php
  25. +4 −3 system/database/drivers/mysql/mysql_forge.php
  26. +4 −3 system/database/drivers/mysql/mysql_result.php
  27. +4 −3 system/database/drivers/mysql/mysql_utility.php
  28. +7 −16 system/database/drivers/mysqli/mysqli_driver.php
  29. +4 −3 system/database/drivers/mysqli/mysqli_forge.php
  30. +4 −3 system/database/drivers/mysqli/mysqli_result.php
  31. +4 −3 system/database/drivers/mysqli/mysqli_utility.php
  32. +4 −3 system/helpers/array_helper.php
  33. +4 −3 system/helpers/captcha_helper.php
  34. +4 −3 system/helpers/cookie_helper.php
  35. +4 −3 system/helpers/date_helper.php
  36. +4 −3 system/helpers/directory_helper.php
  37. +6 −6 system/helpers/download_helper.php
  38. +4 −3 system/helpers/email_helper.php
  39. +5 −4 system/helpers/file_helper.php
  40. +4 −3 system/helpers/form_helper.php
  41. +4 −3 system/helpers/html_helper.php
  42. +4 −3 system/helpers/inflector_helper.php
  43. +4 −3 system/helpers/language_helper.php
  44. +4 −3 system/helpers/number_helper.php
  45. +4 −3 system/helpers/path_helper.php
  46. +4 −3 system/helpers/security_helper.php
  47. +4 −3 system/helpers/smiley_helper.php
  48. +4 −3 system/helpers/string_helper.php
  49. +4 −12 system/helpers/text_helper.php
  50. +4 −3 system/helpers/typography_helper.php
  51. +4 −3 system/helpers/url_helper.php
  52. +4 −3 system/helpers/xml_helper.php
  53. +1 −1 system/language/english/date_lang.php
  54. +1 −1 system/language/english/ftp_lang.php
  55. +20 −21 system/libraries/Cache/Cache.php
  56. +20 −24 system/libraries/Cache/drivers/Cache_apc.php
  57. +5 −8 system/libraries/Cache/drivers/Cache_dummy.php
  58. +21 −23 system/libraries/Cache/drivers/Cache_file.php
  59. +21 −25 system/libraries/Cache/drivers/Cache_memcached.php
  60. +10 −0 system/libraries/Cache/drivers/index.html
  61. +10 −0 system/libraries/Cache/index.html
  62. +4 −3 system/libraries/Calendar.php
  63. +4 −4 system/libraries/Cart.php
  64. +4 −5 system/libraries/Driver.php
  65. +8 −7 system/libraries/Email.php
  66. +19 −65 system/libraries/Encrypt.php
  67. +4 −3 system/libraries/Form_validation.php
  68. +4 −4 system/libraries/Ftp.php
  69. +4 −3 system/libraries/Image_lib.php
  70. +4 −3 system/libraries/Javascript.php
  71. +4 −3 system/libraries/Log.php
  72. +4 −2 system/libraries/Migration.php
  73. +4 −3 system/libraries/Pagination.php
  74. +4 −3 system/libraries/Parser.php
  75. +4 −3 system/libraries/Profiler.php
  76. +45 −31 system/libraries/Session.php
  77. +4 −3 system/libraries/Sha1.php
  78. +4 −3 system/libraries/Table.php
  79. +4 −3 system/libraries/Trackback.php
  80. +4 −5 system/libraries/Typography.php
  81. +4 −3 system/libraries/Unit_test.php
  82. +11 −38 system/libraries/Upload.php
  83. +4 −3 system/libraries/User_agent.php
  84. +4 −3 system/libraries/Xmlrpc.php
  85. +4 −3 system/libraries/Xmlrpcs.php
  86. +4 −3 system/libraries/Zip.php
  87. +11 −10 system/libraries/javascript/Jquery.php
  88. +10 −0 system/libraries/javascript/index.html
@@ -5,8 +5,9 @@
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @author EllisLab Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
@@ -24,7 +25,7 @@
* @package CodeIgniter
* @subpackage Libraries
* @category Libraries
* @author ExpressionEngine Dev Team
* @author EllisLab Dev Team
* @link http://codeigniter.com/user_guide/libraries/benchmark.html
*/
class CI_Benchmark {
@@ -5,8 +5,9 @@
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @author EllisLab Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
@@ -23,7 +24,7 @@
* @package CodeIgniter
* @subpackage codeigniter
* @category Front-controller
* @author ExpressionEngine Dev Team
* @author EllisLab Dev Team
* @link http://codeigniter.com/user_guide/
*/
@@ -33,7 +34,7 @@
* @var string
*
*/
define('CI_VERSION', '2.1.4');
define('CI_VERSION', '2.2.0');
/**
* CodeIgniter Branch (Core = TRUE, Reactor = FALSE)
@@ -5,8 +5,9 @@
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @author EllisLab Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
@@ -23,7 +24,7 @@
* @package CodeIgniter
* @subpackage codeigniter
* @category Common Functions
* @author ExpressionEngine Dev Team
* @author EllisLab Dev Team
* @link http://codeigniter.com/user_guide/
*/
@@ -32,9 +33,6 @@
/**
* Determines if the current version of PHP is greater then the supplied value
*
* Since there are a few places where we conditionally test for PHP > 5
* we'll set a static variable.
*
* @access public
* @param string
* @return bool TRUE if the current version is $version or higher
@@ -254,7 +252,8 @@ function &get_config($replace = array())
}
}
return $_config[0] =& $config;
$_config[0] =& $config;
return $_config[0];
}
}
@@ -470,9 +469,6 @@ function _exception_handler($severity, $message, $filepath, $line)
{
// We don't bother with "strict" notices since they tend to fill up
// the log file with excess information that isn't normally very helpful.
// For example, if you are running PHP 5 and you use version 4 style
// class functions (without prefixes like "public", "private", etc.)
// you'll get notices telling you that these have been deprecated.
if ($severity == E_STRICT)
{
return;
@@ -5,8 +5,9 @@
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @author EllisLab Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
@@ -23,7 +24,7 @@
* @package CodeIgniter
* @subpackage Libraries
* @category Libraries
* @author ExpressionEngine Dev Team
* @author EllisLab Dev Team
* @link http://codeigniter.com/user_guide/libraries/config.html
*/
class CI_Config {
@@ -68,7 +69,7 @@ function __construct()
{
if (isset($_SERVER['HTTP_HOST']))
{
$base_url = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off' ? 'https' : 'http';
$base_url = (empty($_SERVER['HTTPS']) OR strtolower($_SERVER['HTTPS']) === 'off') ? 'http' : 'https';
$base_url .= '://'. $_SERVER['HTTP_HOST'];
$base_url .= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);
}
@@ -5,8 +5,9 @@
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @author EllisLab Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
@@ -24,7 +25,7 @@
* @package CodeIgniter
* @subpackage Libraries
* @category Libraries
* @author ExpressionEngine Dev Team
* @author EllisLab Dev Team
* @link http://codeigniter.com/user_guide/general/controllers.html
*/
class CI_Controller {
@@ -37,7 +38,7 @@ class CI_Controller {
public function __construct()
{
self::$instance =& $this;
// Assign all the class objects that were instantiated by the
// bootstrap file (CodeIgniter.php) to local class variables
// so that CI can run as one big super object.
@@ -5,8 +5,9 @@
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @author EllisLab Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
@@ -21,7 +22,7 @@
* @package CodeIgniter
* @subpackage Libraries
* @category Exceptions
* @author ExpressionEngine Dev Team
* @author EllisLab Dev Team
* @link http://codeigniter.com/user_guide/libraries/exceptions.html
*/
class CI_Exceptions {
@@ -5,8 +5,9 @@
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @author EllisLab Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
@@ -23,7 +24,7 @@
* @package CodeIgniter
* @subpackage Libraries
* @category Libraries
* @author ExpressionEngine Dev Team
* @author EllisLab Dev Team
* @link http://codeigniter.com/user_guide/libraries/encryption.html
*/
class CI_Hooks {
@@ -5,8 +5,9 @@
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @author EllisLab Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
@@ -23,7 +24,7 @@
* @package CodeIgniter
* @subpackage Libraries
* @category Input
* @author ExpressionEngine Dev Team
* @author EllisLab Dev Team
* @link http://codeigniter.com/user_guide/libraries/input.html
*/
class CI_Input {
@@ -631,8 +632,24 @@ function _sanitize_globals()
unset($_COOKIE['$Path']);
unset($_COOKIE['$Domain']);
// Work-around for PHP bug #66827 (https://bugs.php.net/bug.php?id=66827)
//
// The session ID sanitizer doesn't check for the value type and blindly does
// an implicit cast to string, which triggers an 'Array to string' E_NOTICE.
$sess_cookie_name = config_item('cookie_prefix').config_item('sess_cookie_name');
if (isset($_COOKIE[$sess_cookie_name]) && ! is_string($_COOKIE[$sess_cookie_name]))
{
unset($_COOKIE[$sess_cookie_name]);
}
foreach ($_COOKIE as $key => $val)
{
// _clean_input_data() has been reported to break encrypted cookies
if ($key === $sess_cookie_name && config_item('sess_encrypt_cookie'))
{
continue;
}
$_COOKIE[$this->_clean_input_keys($key)] = $this->_clean_input_data($val);
}
}
@@ -5,8 +5,9 @@
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @author EllisLab Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
@@ -21,7 +22,7 @@
* @package CodeIgniter
* @subpackage Libraries
* @category Language
* @author ExpressionEngine Dev Team
* @author EllisLab Dev Team
* @link http://codeigniter.com/user_guide/libraries/language.html
*/
class CI_Lang {
@@ -5,8 +5,9 @@
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @author EllisLab Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
@@ -22,7 +23,7 @@
*
* @package CodeIgniter
* @subpackage Libraries
* @author ExpressionEngine Dev Team
* @author EllisLab Dev Team
* @category Loader
* @link http://codeigniter.com/user_guide/libraries/loader.html
*/
@@ -5,8 +5,9 @@
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @author EllisLab Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
@@ -21,7 +22,7 @@
* @package CodeIgniter
* @subpackage Libraries
* @category Libraries
* @author ExpressionEngine Dev Team
* @author EllisLab Dev Team
* @link http://codeigniter.com/user_guide/libraries/config.html
*/
class CI_Model {
@@ -5,8 +5,9 @@
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @author EllisLab Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
@@ -23,7 +24,7 @@
* @package CodeIgniter
* @subpackage Libraries
* @category Output
* @author ExpressionEngine Dev Team
* @author EllisLab Dev Team
* @link http://codeigniter.com/user_guide/libraries/output.html
*/
class CI_Output {
@@ -5,8 +5,9 @@
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @author EllisLab Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
@@ -22,7 +23,7 @@
*
* @package CodeIgniter
* @subpackage Libraries
* @author ExpressionEngine Dev Team
* @author EllisLab Dev Team
* @category Libraries
* @link http://codeigniter.com/user_guide/general/routing.html
*/

0 comments on commit 346a435

Please sign in to comment.
You can’t perform that action at this time.