PHP Version
8.2
CodeIgniter4 Version
4.3.7
CodeIgniter4 Installation Method
Composer (using codeigniter4/appstarter)
Which operating systems have you tested for this bug?
Linux
Which server did you use?
cli-server (PHP built-in webserver)
Database
No response
What happened?
See https://forum.codeigniter.com/showthread.php?tid=88247&pid=411790#pid411790
If in app/Config/Filters.php "csrf" have empty array "except" CSRF field not write in HTML.
If "except" filled - all work.
Steps to Reproduce
Set "csrf" => ["except" => []] , insert form_open() in template and see source code. csrf field not installed
Expected Output
Insert token if except empty array
Anything else?
No response
PHP Version
8.2
CodeIgniter4 Version
4.3.7
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter)Which operating systems have you tested for this bug?
Linux
Which server did you use?
cli-server (PHP built-in webserver)
Database
No response
What happened?
See https://forum.codeigniter.com/showthread.php?tid=88247&pid=411790#pid411790
If in app/Config/Filters.php "csrf" have empty array "except" CSRF field not write in HTML.
If "except" filled - all work.
Steps to Reproduce
Set
"csrf" => ["except" => []], insert form_open() in template and see source code. csrf field not installedExpected Output
Insert token if except empty array
Anything else?
No response