The filename fallback cannot contain the "%" character

Created on 30 October 2023, 8 months ago
Updated 18 April 2024, 2 months ago

Problem/Motivation

After #3296068: [Drupal 9.4.x+] Test and one-off D10 deprecations and similar to 🐛 None ASCII characters file names Fixed when you don't have "Sanitize filenames"or "Rename files" checked, you'll have an error accessing files with % \, /, \\ or //.

This is also due to of HeaderUtils::makeDisposition in Symfony.

Steps to reproduce

1. Create a webform and add a file upload field and don't check "Rename files" or "Sanitize file name".
2. Go to the form page and upload a file with a percentage sign (%), then hit submit.
3. Go to the results page and click on the file to view it and you will get the error.

Proposed resolution

We could potentially add a simple str_replace()?

🐛 Bug report
Status

Fixed

Version

6.2

Component

Code

Created by

🇨🇦Canada bbombachini London, ON

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024