If MEGAUPLOAD or similar plugin is installed jQuery.browser returns wrong IE version.
For example userAgent string for IE7 with installed MEGAUPLOAD plugin is:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; MEGAUPLOAD 2.0)
jQuery.browser.version returns 6 instead of 7
First plus (+) should be removed from regExp and than it will work fine. So, this line:
(userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ )
[])[1]
should read:
(userAgent.match( /.(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) | [])[1]
Attachments
Change History
Download in other formats:
|