[TYPO3-core] Further correction to MIME type determination

Martin Kutschker Martin.Kutschker at blackbox.net
Thu Apr 20 10:37:28 CEST 2006


Wolfgang Klinger <wolfgang at stufenlos.net> writes on 
Thu, 20 Apr 2006 10:37:05 +0200 (METDST):

> 
> 
> > PS: Is it really necessary to escape anything besides a ] in a
> > character class? All those extra \ make the class hard to read. 
> 
> You have to escape "\", "]" and "-" in a character class.


Ah yes, of course. But "-" may be used at the end of a class without escaping: [a-z_-]

Masi 



More information about the TYPO3-team-core mailing list