[TYPO3-dev] BrowserInfo going beserk...

Steffen Kamper info at sk-typo3.de
Fri May 21 13:53:10 CEST 2010


Hi,

Jigal van Hemert schrieb:
> 
> Again, read the output of the function for IE8:
> 
> useragent : 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) ; 
> SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET 
> CLR 3.0.30729)
> browser : msie
> version : 6.0
> all : msie 6.0
> 
> "all" reports MSIE 6.0, which is obviously incorrect. The reason is 
> simple: in "all" there is only a single entry per browser. Only the 
> right-most version will be returned if the same 'browser' is present 
> multiple times in the UA string.
> 
> Although this is easy to change (add an entry to "all" for each detected 
> version), it still results in incorrect detection in TS. If you check 
> for msie 6 it will match with some versions of IE8. You can blame the 
> guys in Redmond for sending such a strange UA, but in the end the 
> browser isn't detected correctly.
> [browser= msie] && [version= 6] simply should not match for IE8.
> 
> 

so please open a BT, i will test this string and provide a fix.

vg Steffen




More information about the TYPO3-dev mailing list