CodeIgniter 4 Development v4.1.6 Release Notes
Release Date: 2022-01-03 // over 2 years ago-
๐ SECURITY
- Deserialization of Untrusted Data found in the
old()
function was fixed. See the Security advisory for more information.
๐ฅ Breaking Changes
- ๐ fix: Incorrect type
BaseBuilder::$tableName
by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5378 - ๐ fix: Validation cannot handle array item by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5405
๐ Fixed Bugs
- ๐ fix: FileLocator cannot find files in sub-namespaces of the same vendor by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5292
- ๐ fix: add a workaround for upgraded users who do not update Config\Exceptions by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5314
- ๐ Fix db escape negative integers by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5277
- ๐ Fix: remove incorrect processing of CLI params by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5274
- ๐ fix: table alias is prefixed when LIKE clause by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5361
- fix:
dot_array_search()
unexpected array structure causes Type Error by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5372 - ๐ fix: UploadedFile::move() may return incorrect value by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5302
- ๐ fix: BaseModel::insert() may not pass all the values from Entity by @katie1348 in https://github.com/codeigniter4/CodeIgniter4/pull/4980
- ๐ fix:
IncomingRequest::getJsonVar()
may cause TypeError by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5392 - โ chore: fix example test code for appstarter and module by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5421
- ๐ fix: Model::save() may call unneeded countAllResults() by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5439
- ๐ fix: errors when MariaDB/MySQL has
ANSI_QUOTES
enabled by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5425 - ๐ fix: Security class sends cookies immediately by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5429
- fix:
is_cli()
returnstrue
when$_SERVER['HTTP_USER_AGENT']
is missing by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5393 - ๐ fix:
MySQLi\Connection::_foreignKeyData()
may return duplicated rows by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5416 - fix:
number_to_currency()
error on PHP 8.1 by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5454 - ๐ fix: VENDORPATH definition by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5453
- ๐ fix: Throttler does not show correct token time by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5470
- ๐ fix: directory_mirror() throws an error if destination directory exists by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5493
- ๐ fix: KINT visual error when activating CSP by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5501
๐ New Features
- feat: add filter to check invalid chars in user input by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5227
โจ Enhancements
- โ Add support for PHP 8.1 by @paulbalandan in https://github.com/codeigniter4/CodeIgniter4/pull/4883
- Toolbar - Make it possible to turn off var data collection by @najdanovicivan in https://github.com/codeigniter4/CodeIgniter4/pull/5295
- feat: add CSRF token randomization by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5283
- Display file:line and trace information to database queries in debug toolbar by @lonnieezell in https://github.com/codeigniter4/CodeIgniter4/pull/5334
- feat: add SecureHeaders filter by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5419
- ๐ Feature: BaseBuilder instance as subquery. by @iRedds in https://github.com/codeigniter4/CodeIgniter4/pull/5488
๐จ Refactoring
- Do not inappropriately register bind when the value is a closure by @vlakoff in https://github.com/codeigniter4/CodeIgniter4/pull/5247
- ๐จ refactor: replace $request->uri with $request->getUri() by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5346
- Determine if binds are simple or named by looking at the $binds array by @vlakoff in https://github.com/codeigniter4/CodeIgniter4/pull/5138
- โ Remove unneeded cast to array by @vlakoff in https://github.com/codeigniter4/CodeIgniter4/pull/5379
- โ Additional fix for deprecated
null
usage by @paulbalandan in https://github.com/codeigniter4/CodeIgniter4/pull/5388 - refactor: dot_array_search() regex by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5443
- ๐จ refactor: Time::getDst() by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5415
- โก๏ธ The View class. Optimizing duplicate code. by @iRedds in https://github.com/codeigniter4/CodeIgniter4/pull/5455
- ๐จ refactor: fix
ThrottleTest::testFlooding
by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5463 - ๐จ refactor: update deprecated method in DatetimeCast by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/5474
- โ Remove semicolons from SQL statements. by @ytetsuro in https://github.com/codeigniter4/CodeIgniter4/pull/5513
๐ New Contributors
- @katie1348 made their first contribution in https://github.com/codeigniter4/CodeIgniter4/pull/4980
- Deserialization of Untrusted Data found in the