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.
Actions