[TYPO3-core] FYI: Fixed bug #11451: Wrong pattern modifier in t3lib_htmlmail

Andy Grunwald [wmdb] andreas.grunwald at wmdb.de
Wed Oct 7 15:32:04 CEST 2009


+1 by reading

you could always use () as delimiter.
For example:
preg_match('((.*/)(.*)$)', $fileref, $reg))

tanks olly, for this patch

Oliver Hader schrieb:
> The following changes were committed to SVN Trunk (rev. 6108)
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=11451
> 
> Branch: Trunk
> 
> Problem:
> The split_fileref() method in t3lib_htmlmail shows the following warning:
> Warning: preg_match() [function.preg-match]: Unknown modifier ')' in
> /.../t3lib/class.t3lib_htmlmail.php on line 1389
> 
> Solution:
> Since the pattern was "converted" from ereg to preg, escaping the
> delimiter was forgotten. Using '\/' instead of '/' inside the pattern
> solves this issue.
> 
> olly
> 


More information about the TYPO3-team-core mailing list