Apostrophe in email "From Name" causes 500 Error #395

Closed
opened 2026-02-05 17:32:17 +03:00 by OVERLORD · 1 comment
Owner

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?

  • I have searched the existing issues before opening this issue.
  • I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server.
  • I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.
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 ```bash ``` ### Is there an existing issue for this? - [x] I have searched the existing issues before opening this issue. - [x] I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server. - [x] I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.
Author
Owner

@Boy132 commented on GitHub (Jul 30, 2025):

This is a Laravel issue: https://github.com/laravel/framework/issues/56480

@Boy132 commented on GitHub (Jul 30, 2025): This is a Laravel issue: https://github.com/laravel/framework/issues/56480
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel-pelican-dev#395