Actions
Bug #36845
closedxhtml_cleanup removes data uris from img src attribute
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.
Updated by Mathias Schreiber almost 10 years ago
- Target version changed from 4.5.16 to 7.2 (Frontend)
- Is Regression set to No
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