Files displayed as links have not working url.

Created on 5 April 2023, over 1 year ago
Updated 21 April 2023, over 1 year ago

Problem/Motivation

Objectifs de qualité ++-+àèé!i (1) (1).pdf

The url is not well encoded as "+" characters are not encoded.

Steps to reproduce

Install Mimemail
Make webform use Mimemail sender.
Create a webform
Add a document/file field
Configure it to send the email with the file as link
Test the webform adding a file with filename containing special characters

The file's url in the email is broken, 404 not found because of the wrong encoded url.
Without Mimemail sender, the url is good.
The url is apparently broken when passing througt the body|raw of mimemail-message.

I test it with different senders, differents text formats, a custom twig filter.

🐛 Bug report
Status

Fixed

Component

Code

Created by

🇫🇷France paul_leclerc Lausanne Switzerland

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

Comments & Activities

  • Issue created by @paul_leclerc
  • Status changed to Postponed: needs info over 1 year ago
  • 🇺🇸United States tr Cascadia

    First, try this with the current version of Mime Mail.
    Second, if that doesn't help, try this without involving Webform. I suggest using the mimemail_example module that comes with Mime Mail.
    Third, please provide specific steps to reproduce this without using a complicated module like Webform. A copy of the raw HTML of the email received (including headers) plus a copy of raw HTML passed to Mime Mail would help.

  • 🇫🇷France paul_leclerc Lausanne Switzerland

    Thanks for your answer.
    The alpha 5 was released a few days after the problem appeared and has the same version name that the alpha4 so I get fooled.
    Good for me it fixes the issue.

  • 🇫🇷France paul_leclerc Lausanne Switzerland
  • Status changed to Fixed over 1 year ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024