Skip to content

Commit d546a37

Browse files
committed
update changelog and user guide
1 parent 0f14c60 commit d546a37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

user_guide_src/source/changelogs/v4.4.2.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,14 @@ Changes
2222
command was removed. It did not work from the beginning. Also, the rollback
2323
command returns the database(s) state to a specified batch number and cannot
2424
specify only a specific database group.
25+
- **Security:** The presence of the CSRF token is now also checked in the raw body (not JSON format) for PUT, PATCH, and DELETE type of requests.
2526

2627
Deprecations
2728
************
2829

2930
Bugs Fixed
3031
**********
3132

32-
- **Security:** Fixed a bug where the CSRF token wasn't checked if we sent it in the raw body (not JSON format) for PUT, PATCH, and DELETE requests.
33-
3433
See the repo's
3534
`CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md>`_
3635
for a complete list of bugs fixed.

user_guide_src/source/libraries/security.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ The order of checking the availability of the CSRF token is as follows:
204204
1. ``$_POST`` array
205205
2. HTTP header
206206
3. ``php://input`` (JSON request) - bear in mind that this approach is the slowest one since we have to decode JSON and then re-encode it
207+
4. ``php://input`` (raw body) - for PUT, PATCH, and DELETE type of requests
207208

208209
*********************
209210
Other Helpful Methods

0 commit comments

Comments
 (0)