File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
2627Deprecations
2728************
2829
2930Bugs 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-
3433See the repo's
3534`CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md >`_
3635for a complete list of bugs fixed.
Original file line number Diff line number Diff line change @@ -204,6 +204,7 @@ The order of checking the availability of the CSRF token is as follows:
2042041. ``$_POST `` array
2052052. HTTP header
2062063. ``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*********************
209210Other Helpful Methods
You can’t perform that action at this time.
0 commit comments