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

Benjamin Mack mack at xnos.org
Thu Feb 21 22:33:59 CET 2008


sorry guys, I haven't had the time. I'll commit this one tomorrow!

Francois Suter wrote:
> 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
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Before posting to this list, please have a look to the posting rules
> on the following websites:
> 
> http://typo3.org/teams/core/core-mailinglist-rules/
> http://typo3.org/development/bug-fixing/diff-and-patch/ 
> _______________________________________________
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-core

-- 
greetings,
benni.
-SDG-

www.xnos.de // www.xnos.org


More information about the TYPO3-team-core mailing list