You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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.
16
+
17
+
Enhancements
18
+
************
19
+
20
+
none.
21
+
22
+
Changes
23
+
*******
24
+
25
+
none.
26
+
27
+
Deprecations
28
+
************
29
+
30
+
none.
31
+
32
+
Bugs Fixed
33
+
**********
34
+
35
+
See the repo's `CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md>`_ for a complete list of bugs fixed.
Copy file name to clipboardExpand all lines: user_guide_src/source/helpers/cookie_helper.rst
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,8 @@ The following functions are available:
53
53
the ``$cookiePrefix`` that you might've set in your
54
54
**app/Config/App.php** file.
55
55
56
+
.. warning:: 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.
- ``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.
19
+
20
+
Breaking Enhancements
21
+
*********************
22
+
23
+
none.
24
+
25
+
Project Files
26
+
*************
27
+
28
+
Numerous files in the **project space** (root, app, public, writable) received updates. Due to
29
+
these files being outside of the **system** scope they will not be changed without your intervention.
30
+
There are some third-party CodeIgniter modules available to assist with merging changes to
31
+
the project space: `Explore on Packagist <https://packagist.org/explore/?query=codeigniter4%20updates>`_.
32
+
33
+
.. note:: Except in very rare cases for bug fixes, no changes made to files for the project space
34
+
will break your application. All changes noted here are optional until the next major version,
35
+
and any mandatory changes will be covered in the sections above.
36
+
37
+
Content Changes
38
+
===============
39
+
40
+
The following files received significant changes (including deprecations or visual adjustments)
41
+
and it is recommended that you merge the updated versions with your application:
42
+
43
+
*
44
+
45
+
All Changes
46
+
===========
47
+
48
+
This is a list of all files in the **project space** that received changes;
49
+
many will be simple comments or formatting that have no effect on the runtime:
0 commit comments