mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
Apostrophe in email "From Name" causes 500 Error #395
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @die-gute-snefi on GitHub (Jul 27, 2025).
Current Behavior
Adding an apostrophe into the "From Name" of an email in the SMTP settings causes the site to give out a 500 error. Inspecting the .env we can see that the apostrophe has been escaped using a backslash such as: '
This causes the error to occur. When running the updating script it mentions that the line is unexpected; removing the backslash causes panel to run as expected. Further, fixing this manually in the .env means that any further changes in the settings tab require going back to the .env and fixing this again. There is no error apparent in the logs.
Expected Behavior
Apostrophes should be either not escaped using a backslash, or the escaped character should be handled properly and not cause a crash.
Steps to Reproduce
Adding an apostrophe into the "From Name" title in the SMTP settings of panel then saving.
Panel Version
1.0.0-beta23
Wings Version
1.0.0-beta15
Games and/or Eggs Affected
No response
Docker Image
No response
Error Logs
Is there an existing issue for this?
@Boy132 commented on GitHub (Jul 30, 2025):
This is a Laravel issue: https://github.com/laravel/framework/issues/56480