Comma in text field crashes page on submission

Created on 23 February 2022, over 2 years ago
Updated 28 February 2023, over 1 year ago

A form with a two basic text fields cause the page to become temporarily unavailable on submit if there is a comma in the field. Periods are fine.

There is no validation or conditions on this field. The data gets saved. As soon as we hit submit, the error is "Temporarily Unavailable. The website that you're trying to reach is having technical difficulties and is currently unavailable. We are aware of the issue and are working hard to fix it. Thank you for your patience."

πŸ› Bug report
Status

Closed: cannot reproduce

Version

5.31

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States taxelson@umassp.edu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡¦Canada zread

    Ran into this issue with Drupal 9.5.x and Webform 6.1.3. After further digging it turned out that the form was configured to send emails and was pulling the "From name" from the text field with the comma.

    Example of user input in the text field: "Abc,abc"

    Error encountered in logs for reference:

    Uncaught PHP Exception Drupal\Core\Entity\EntityStorageException: "Email ""Abc" does not comply with addr-spec of RFC 2822." at /docroot/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php line 815

    How to reproduce

    There's another issue with full steps on how to reproduce this here:
    https://www.drupal.org/project/webform/issues/3223017 πŸ› Drupal\Core\Entity\EntityStorageException: Email does not comply with addr-spec of RFC 2822. Closed: outdated

    Unfortunately it was marked as closed, but was never actually fixed. Figured I'd add a comment here in case anyone else Googles this issue.

  • πŸ‡ΊπŸ‡ΈUnited States cilefen

    This is a core issue which is fixed.

Production build 0.69.0 2024