[TYPO3-core] RFC: Respect target if specified in file header
Martin Kutschker
Martin.Kutschker at blackbox.net
Thu Dec 1 21:23:28 CET 2005
Holzinger Franz <franz at fholzinger.com> writes on
Thu, 01 Dec 2005 19:45:50 +0100 (MET):
>
> >+ // Get the first two lines of the file
> >+
> > preg_match('/^.*[\n\r].*[\n\r].*[\n\r].*[\n\r].*[\n\r][^\n\r]*/',$content,
> > $match);
>
> These are more than two lines.
And it might be an idea to do a substr($content,0,1024) to avoid problems with binary files.
Which brings up the idea of restricting the tests on known file extensions.
Masi
More information about the TYPO3-team-core
mailing list