[TYPO3-core] Fix bugtracker issue 3051: RTE removes images under special conditions when saving

Franz Holzinger franz at fholzinger.com
Thu Apr 6 16:52:52 CEST 2006


Hello Stanislas,

>This is a CVS patch request.
>
>Type: Bugfix
>
>Description: When a paragraph contains only an image and a non-breakable space, RTE transformation removes the image. This patch will preserve the paragraph contents if an image tag is present.
>
>Branches: TYPO3_4-0
>
>Bugtracker reference: http://bugs.typo3.org/view.php?id=3051
>
>  
>


> preg_match('/\<(img)(\s[^>]*)?\/?>/si', $divSplit[$k]))

This only checks if it is a XHTML image tag with /> at the end.
But not this:

<img src="clear.gif" width="150" height="1">
And the last '?' what is this meant for?

Regards,

Franz





More information about the TYPO3-team-core mailing list