[TYPO3-core] RFC: Bugfix #7445: Malformed translated locallang causes PHP crash

Francois Suter fsuter at cobweb.ch
Thu Feb 7 16:08:50 CET 2008


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=7445

Branches:
4.1, 4.2 and Trunk

Problem:
In t3lib_div::readLLXMLfile() errors in the locallang file are properly 
caught for the default language (i.e. an error message is displayed 
pointing to the invalid file), but not for translations (PHP fatal error 
occurs).

Solution:
The attached patch copies for the translated file the same 
error-handling mechanism as for the default language file.

Notes:
To reproduce that bug, you can simply replace a locallang file in 
typo3conf/l10n by an empty and see what happens. For example replace 
typo3conf/l10n/lang/[language_key].locallang_general.xml and try to view 
the page tree in the BE by going to Web > Page.

I have made a different patch for 4.1 and 4.2, due to changes in 
t3lib_div::readLLXMLfile(). The patch for 4.2 applies fine to trunk.

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bug7445_4-1.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080207/84cba5a3/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bug7445_4-2.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080207/84cba5a3/attachment-0001.txt 


More information about the TYPO3-team-core mailing list