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
22
22
command was removed. It did not work from the beginning. Also, the rollback
23
23
command returns the database(s) state to a specified batch number and cannot
24
24
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.
25
26
26
27
Deprecations
27
28
************
28
29
29
30
Bugs Fixed
30
31
**********
31
32
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
-
34
33
See the repo's
35
34
`CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md >`_
36
35
for 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:
204
204
1. ``$_POST `` array
205
205
2. HTTP header
206
206
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
207
208
208
209
*********************
209
210
Other Helpful Methods
You can’t perform that action at this time.
0 commit comments