diff options
author | Andrey Andreev <narf@devilix.net> | 2017-11-29 11:59:45 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2017-11-29 11:59:45 +0100 |
commit | 9e2dcd4a6a70a997d8d741e8f113660f16b9a609 (patch) | |
tree | 90ce5082ee1aaa9f12b5c9ac3c971e2924ecd2bd | |
parent | cf0e3e336ee872f1304bf0d19d39cc051db6c041 (diff) |
[ci skip] Fix allow_get_array defaulting to FALSE if it doesn't exist
-rw-r--r-- | system/core/Input.php | 2 | ||||
-rw-r--r-- | user_guide_src/source/changelog.rst | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/system/core/Input.php b/system/core/Input.php index af4f87c1f..bb287ea4a 100644 --- a/system/core/Input.php +++ b/system/core/Input.php @@ -137,7 +137,7 @@ class CI_Input { */ public function __construct() { - $this->_allow_get_array = (config_item('allow_get_array') === TRUE); + $this->_allow_get_array = (config_item('allow_get_array') !== FALSE); $this->_enable_xss = (config_item('global_xss_filtering') === TRUE); $this->_enable_csrf = (config_item('csrf_protection') === TRUE); $this->_standardize_newlines = (bool) config_item('standardize_newlines'); diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst index c53f30f26..ea201068b 100644 --- a/user_guide_src/source/changelog.rst +++ b/user_guide_src/source/changelog.rst @@ -24,6 +24,7 @@ Bug fixes for 3.1.7 - Fixed a regression (#5282) - :doc:`Query Builder <database/query_builder>` method ``count_all_results()`` breaks ``ORDER BY`` clauses for subsequent queries. - Fixed a bug (#5279) - :doc:`Query Builder <database/query_builder>` didn't account for already escaped identifiers while applying database name prefixes. - Fixed a bug (#5331) - :doc:`URL Helper <helpers/url_helper>` function :php:func:`auto_link()` converted e-mail addresses starting with 'www.' to both "url" and "email" links. +- Fixed a bug where ``$config['allow_get_array']`` defaulted to ``FALSE`` if it didn't exist in the config file. Version 3.1.6 ============= |