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

Martin T. Kutschker Martin-no5pam-Kutschker at blackbox.n0spam.net
Sat Sep 18 17:13:31 CEST 2004


Martin T. Kutschker wrote:
> Hi!
> 
> 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 have been me while messing with some debug code. Didn't check if 
it was in the distro (in this case 3.6.0).

> The simple solution is to ignore the LF. Now the md5 strings mismatch, 
> because the string comparison fails with the LF. Remove it from the md5 
> within the .t3x and you're done.

Other solution is to add an ob_start() as the very first command and to 
a "while (@ob_end_clean());" right before doing the output for the 
.t3x.archive.

Of course removing the whitespace is the best solution adding the 
workarounds still make sense, because 3rd party code may bring 
whitespace in. And the Core has no control over them.

Anyway bug has been filed with desc and fix.

Masi





More information about the TYPO3-dev mailing list