Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flashMessenger logs out user when session storage is database and msg contains utf8 emoji #42

Open
YuriStruszczynski opened this issue Apr 16, 2024 · 0 comments
Labels
Bug Something isn't working

Comments

@YuriStruszczynski
Copy link

YuriStruszczynski commented Apr 16, 2024

Bug Report

Q A
laminas-mvc-plugin-flashmessenger 1.10.1
PHP 8+
nginx
session storage database

Summary

Current behavior

FlashMessenger logs out user when session storage is database and msg contains utf8 emoji.
Also relevant: localhost with apache gives no problem, production with nginx gives problem

How to reproduce

  1. Login ...
  2. $this->flashMessenger()->addSuccessMessage("xyz 💪");
  3. die("test");
  4. run Action to see "test"
  5. Use Browser history to get back
  6. you're logged out
  7. remove emoji
  8. run action again to see "test"
  9. you're still logged in

Expected behavior

no logout

@YuriStruszczynski YuriStruszczynski added the Bug Something isn't working label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant