[Typo3-dev] tracking md5 mismatch error with .t3x-files

Martin T. Kutschker Martin.no5pam.Kutschker at blackbox.n0spam.net
Sat Sep 18 18:40:02 CEST 2004


Ingmar Schlecht wrote:
> Martin T. Kutschker schrieb:
> 
>> Martin T. Kutschker wrote:
>>>
>>> After been annoyed too much with broken .t3x-files I did some 
>>> research. To me it seems that the downloaded files contains one 
>>> spurious line feed (LF, "\n") as the very first byte in the file. 
>>> This causes the import to break.
>>
>> Ok, the LFs and sometimes spaces come in, if for some reason one of 
>> the filers required/included bi mod/tools/em/index.php have some 
>> trailing whitespace afte the final ?>
> 
> Could it have a bad impact to just regexp out all the linebreaks?

No I don't think so. We know we remove only leading LFs (or whitespace), 
so the md5 and the archive is still save from tampering.

Though I think we should also add the ob_start/ob_end_clean-code to 
prevent the genartion of new archives with this error.

> If not, go for it, write a patch and if it's before Sunday afternoon, 
> chances are good it'll be in 3.7.

I'll make it two patches, one for ignoring whitespace, one for 
preventing whitespace.

Masi




More information about the TYPO3-dev mailing list