[TYPO3-core] RFC: #14458: getBrowserInfo fails with IE UA Strings

Steffen Kamper info at sk-typo3.de
Mon Jun 7 11:09:21 CEST 2010


Hi,

this is a SVN patch request.

Type: Bugfix

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

Branches: Trunk

IE has a speciality which leads to a failing result: it sends same 
browser with different versions, example:

'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; 
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ...

This leads to wrong detection when the last entry is used.

Solution:
use first entry for msie

Attached is also testcase for IE browser detection. I will add other 
browsers later.

vg Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 14458.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100607/f41b5fb8/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 14458_testcase.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100607/f41b5fb8/attachment.asc>


More information about the TYPO3-team-core mailing list