[TYPO3-core] RFC #17412: PHP Warning in class.t3lib_matchcondition_abstract.php
Markus Klein
klein.t3 at mfc-linz.at
Sun Jan 30 23:14:18 CET 2011
+1 by reading.
Regards
Markus
> -----Original Message-----
> From: typo3-team-core-bounces at lists.typo3.org [mailto:typo3-team-core-
> bounces at lists.typo3.org] On Behalf Of Sven Jürgens
> Sent: Sunday, January 30, 2011 11:02 PM
> To: typo3-team-core at lists.typo3.org
> Subject: [TYPO3-core] RFC #17412: PHP Warning in
> class.t3lib_matchcondition_abstract.php
>
> Hi,
>
> this is a SVN patch request.
>
> Type: Bugfix, No Brainer
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=17412
>
> Branches: 4_5, trunk
>
> Problem:
> i got the following PHP Warning
> PHP Warning: implode() [<a
> href='function.implode'>function.implode</a>]: Invalid arguments passed in
> /.../typo3_src-
> 4.5.0/t3lib/matchcondition/class.t3lib_matchcondition_abstract.php
> line 262
>
> Additional Information:
> this is the following line
> $allSystems .= ' ' . implode(' ', $browserInfo['all_systems']); problem is the
> definition of $browserInfo['all_systems'] in class.t3lib_utility_client.php as
> empty string
>
> for information in $browserInfo['all_systems'] there is used the sended
> userAgent from your Browser, but if some clients don't send the userAgent
> $browserInfo['all_systems'] is still an string
>
> how to reproduce:
>
> set in TypoScript a "system" condition like
>
> [system = mac]
> // do something
> [global]
>
> after that call the page width that condtition and use Firefox Addon Tamper
> Data, to delete your userAgent.
>
>
> Solution:
> set $browserInfo['all_systems'] = array();
More information about the TYPO3-team-core
mailing list