Project

General

Profile

Actions

Bug #36845

closed

xhtml_cleanup removes data uris from img src attribute

Added by Thomas Deinhamer over 12 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
Start date:
2012-05-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

When using something like <img src="data:image/png;base64,..." /> and xhtml_cleaning is set to 'all' TYPO3 removes the attribute completely from the source.

One possible solution could be to edit the regular expression inside the split_tag_attributes method to '/(\<[^\s]+\s+)?(.*?)\s*(\>)?$/sU' (Only adding the 'U' for ungreedy behaviour.)

This fixed the problem for me.

Actions #1

Updated by Mathias Schreiber almost 10 years ago

  • Target version changed from 4.5.16 to 7.2 (Frontend)
  • Is Regression set to No
Actions #2

Updated by Wouter Wolters over 9 years ago

  • Status changed from New to Closed

config.xhtml_cleaning is marked as deprecated in #62855
The core won't support this feature any longer and its functionality is moved to ext:compatibility6

Actions

Also available in: Atom PDF