Giter Site home page Giter Site logo

Comments (3)

agungsugiarto avatar agungsugiarto commented on May 29, 2024

Hello @luciocodeigniter, i'm can't reproduce this issue, can you share more detail ex log and configuration your application.

from codeigniter4-authentication.

luciocodeigniter avatar luciocodeigniter commented on May 29, 2024

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.

agungsugiarto avatar agungsugiarto commented on May 29, 2024

@luciocodeigniter Thank u for reporting bug, already fixed in pr #35

from codeigniter4-authentication.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.