Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/changelogs/v4.7.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Release Date: Unreleased
- **Session:** Fixed a bug where `BaseHandler::destroyCookie()` did not send the `SameSite` attribute in the `Set-Cookie` header, which could prevent browsers from properly clearing the session cookie.
- **Session:** Fixed a bug where `MemcachedHandler` did not reset lock state in `close()` or release an existing lock for a different session ID in `lockSession()`, causing subsequent reads and session ID regeneration on the same handler instance to fail.
- **Session:** Fixed a bug where `Session::start()` did not remove an invalid session cookie from `Request`'s cached cookie global if cookies had already been read from `Request`.
- **Validation:** Fixed a bug where `valid_cc_number` rejected valid Discover cards starting with `646` due to a typo in the prefixes list (`656` instead of `646`).
- **Worker Mode:** Fixed a bug where every request that ended with an uncaught exception, including a `404 Page Not Found` without a 404 override, called `exit()` in the exception handler. This ended the worker script, so FrankenPHP booted a new one, and the worker loop skipped its cleanup after the request. The exception handler now returns to the worker loop.

See the repo's [CHANGELOG.md](https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md) for a complete list of bugs fixed.
2 changes: 1 addition & 1 deletion system/Validation/CreditCardRules.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class CreditCardRules
'Discover Card' => [
'name' => 'discover',
'length' => '16,19',
'prefixes' => '6011,622,644,645,656,647,648,649,65',
'prefixes' => '6011,622,644,645,646,647,648,649,65',
'checkdigit' => true,
],
'InterPayment' => [
Expand Down
10 changes: 10 additions & 0 deletions tests/system/Validation/StrictRules/CreditCardRulesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,16 @@ public static function provideValidCCNumber(): iterable
self::generateCardNumber(65, 19),
true,
],
'discover21' => [
'discover',
self::generateCardNumber(646, 16),
true,
],
'discover22' => [
'discover',
self::generateCardNumber(646, 19),
true,
],
'interpayment1' => [
'interpayment',
self::generateCardNumber(4, 16),
Expand Down
Loading