Base64 encoded images are not working

Created on 14 May 2025, 3 days ago

Problem/Motivation

Base 64 encoded images are being treated as a file path, and are thus improperly processed.

Steps to reproduce

Upload a zip with a HTML file containing a base64 encoded image.

<img class="..." src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAU8AAABX..." />

Get's processed/rendered as:

<img class="..." src="/sites/default/files/minisite/static/.../data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAU8AAABX..." />

Proposed resolution

Exclude data:image/ from the path processing.

Remaining tasks

MR

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇧🇪Belgium BramDriesen Belgium 🇧🇪

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024