Error when getDefaultFileExtensions returns null

Created on 3 July 2023, 12 months ago
Updated 19 October 2023, 8 months ago

Problem/Motivation

In using the External Media β†’ module, it has highlighted an error with the `getFileExtensions` method in the `WebformManagedFileBase` class which can do a `str_replace` on a `null` value because `getDefaultFileExtensions` can return `null`.

Steps to reproduce

  1. Install and enable the Webform and External Media modules
  2. Add an External Media File element to a webform
  3. When on the build page for the webform, the error should appear

Proposed resolution

The getDefaultFileExtensions returns an empty string not `null`

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

6.1

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom jpontet

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

Comments & Activities

Production build 0.69.0 2024