-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5555 from kenjis/replace_deprecated_filter
fix: replace deprecated FILTER_SANITIZE_STRING
- Loading branch information
Showing
7 changed files
with
95 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ See all the changes. | |
.. toctree:: | ||
:titlesonly: | ||
|
||
v4.1.7 | ||
v4.1.6 | ||
v4.1.5 | ||
v4.1.4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Version 4.1.7 | ||
############# | ||
|
||
Release Date: Not Released | ||
|
||
**4.1.7 release of CodeIgniter4** | ||
|
||
.. contents:: | ||
:local: | ||
:depth: 2 | ||
|
||
BREAKING | ||
******** | ||
|
||
- Because ``FILTER_SANITIZE_STRING`` is deprecated since PHP 8.1, ``get_cookie()`` that uses it when ``$xssClean`` is true changed the output. Now it uses ``FILTER_SANITIZE_FULL_SPECIAL_CHARS``. Note that using XSS filtering is a bad practice. It does not prevent XSS attacks perfectly. Using ``esc()`` with the correct ``$context`` in the views is recommended. | ||
|
||
Enhancements | ||
************ | ||
|
||
none. | ||
|
||
Changes | ||
******* | ||
|
||
none. | ||
|
||
Deprecations | ||
************ | ||
|
||
none. | ||
|
||
Bugs Fixed | ||
********** | ||
|
||
See the repo's `CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md>`_ for a complete list of bugs fixed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
############################# | ||
Upgrading from 4.1.6 to 4.1.7 | ||
############################# | ||
|
||
Please refer to the upgrade instructions corresponding to your installation method. | ||
|
||
- :ref:`Composer Installation App Starter Upgrading <app-starter-upgrading>` | ||
- :ref:`Composer Installation Adding CodeIgniter4 to an Existing Project Upgrading <adding-codeigniter4-upgrading>` | ||
- :ref:`Manual Installation Upgrading <installing-manual-upgrading>` | ||
|
||
.. contents:: | ||
:local: | ||
:depth: 2 | ||
|
||
Breaking Changes | ||
**************** | ||
|
||
- ``get_cookie()`` when ``$xssClean`` is true changed the output. Now it uses ``FILTER_SANITIZE_FULL_SPECIAL_CHARS``, not ``FILTER_SANITIZE_STRING``. Make sure the change is acceptable or not. Note that using XSS filtering is a bad practice. It does not prevent XSS attacks perfectly. Using ``esc()`` with the correct ``$context`` in the views is recommended. | ||
|
||
Breaking Enhancements | ||
********************* | ||
|
||
none. | ||
|
||
Project Files | ||
************* | ||
|
||
Numerous files in the **project space** (root, app, public, writable) received updates. Due to | ||
these files being outside of the **system** scope they will not be changed without your intervention. | ||
There are some third-party CodeIgniter modules available to assist with merging changes to | ||
the project space: `Explore on Packagist <https://packagist.org/explore/?query=codeigniter4%20updates>`_. | ||
|
||
.. note:: Except in very rare cases for bug fixes, no changes made to files for the project space | ||
will break your application. All changes noted here are optional until the next major version, | ||
and any mandatory changes will be covered in the sections above. | ||
|
||
Content Changes | ||
=============== | ||
|
||
The following files received significant changes (including deprecations or visual adjustments) | ||
and it is recommended that you merge the updated versions with your application: | ||
|
||
* | ||
|
||
All Changes | ||
=========== | ||
|
||
This is a list of all files in the **project space** that received changes; | ||
many will be simple comments or formatting that have no effect on the runtime: | ||
|
||
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters