Comments (3)
Hello @luciocodeigniter, i'm can't reproduce this issue, can you share more detail ex log and configuration your application.
from codeigniter4-authentication.
Hi @agungsugiarto, of course you do. Apologies for the delay.
To reproduce the error, please have Codeigniter version 4.1.9
, globally enable the 'invalidchars'
filter and when logging in, choose the "Remember me"
option in the form login.
app\Config\Filters.php
public $aliases = [
'csrf' => CSRF::class,
'toolbar' => DebugToolbar::class,
'honeypot' => Honeypot::class,
'invalidchars' => InvalidChars::class, // That filter I mentioned
'secureheaders' => SecureHeaders::class,
///.....
];
/**
* List of filter aliases that are always
* applied before and after every request.
*
* @var array
*/
public $globals = [
'before' => [
'honeypot',
'invalidchars', // when I enable this filter, the mentioned error with remember-me in the login form happens
],
];
Logs:
CRITICAL - 2022-05-13 03:18:43 --> Invalid UTF-8 characters in cookie: ���y�������Z��"�M�Ȩh[�1C6w�����1��)����#�-:�ۃ�؛�т���YE﹔�bSG߱
�W� �ӌr���;�����n-:@������Hrg�����[�t�a�N�b.��C�t����7�ґz��Ix�ޝ��ڀ�Z7$[��
�Ǒ���h�Mk"�:`#���պ�I/�.!�/�
#0 C:\laragon\www\blitz\vendor\codeigniter4\framework\system\Filters\InvalidChars.php(99): CodeIgniter\Security\Exceptions\SecurityException::forInvalidUTF8Chars('cookie', '\xEE\x13\x84y\x9F\x9C\xCF\xD7\xEF\x18\xF8Z\x15\xF9"...')
#1 [internal function]: CodeIgniter\Filters\InvalidChars->checkEncoding('\xEE\x13\x84y\x9F\x9C\xCF\xD7\xEF\x18\xF8Z\x15\xF9"...')
#2 C:\laragon\www\blitz\vendor\codeigniter4\framework\system\Filters\InvalidChars.php(90): array_map(Array, Array)
#3 C:\laragon\www\blitz\vendor\codeigniter4\framework\system\Filters\InvalidChars.php(64): CodeIgniter\Filters\InvalidChars->checkEncoding(Array)
#4 C:\laragon\www\blitz\vendor\codeigniter4\framework\system\Filters\Filters.php(173): CodeIgniter\Filters\InvalidChars->before(Object(CodeIgniter\HTTP\IncomingRequest), NULL)
#5 C:\laragon\www\blitz\vendor\codeigniter4\framework\system\CodeIgniter.php(393): CodeIgniter\Filters\Filters->run('/', 'before')
#6 C:\laragon\www\blitz\vendor\codeigniter4\framework\system\CodeIgniter.php(326): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#7 C:\laragon\www\blitz\public\index.php(37): CodeIgniter\CodeIgniter->run()
#8 {main}
Environment:
PHP 8.1.4
CI 4 Version: 4.1.9
Thanks.
from codeigniter4-authentication.
@luciocodeigniter Thank u for reporting bug, already fixed in pr #35
from codeigniter4-authentication.
Related Issues (9)
- Composer Provision HOT 8
- Register.php calls for invalid file
- ErrorException | On login with email & password
- Publish Filters HOT 1
- Why is vendor namespace `Fluent`? HOT 4
- Set the path the user should be redirected to when they are not authenticated. HOT 1
- InvalidArgumentException when logging in HOT 4
- Does this package provide two-factor authentication? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeigniter4-authentication.