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

Karsten Dambekalns karsten at typo3.org
Thu Apr 13 09:14:13 CEST 2006


Hi.

On Thursday 06 April 2006 16:52, Franz Holzinger wrote:
> > 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?

It means "at most 1 /", so it does exactly what you think it doesn't. :)

Karsten
-- 
Karsten Dambekalns
TYPO3 Association - Active Member
http://association.typo3.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 309 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060413/f2b20abe/attachment.pgp 


More information about the TYPO3-team-core mailing list