Various problems with invalid detection
Posted: Fri Apr 01, 2011 3:21 am
Hi,
I've had reports from various users of our site that their browsers are being incorrectly recognised as mobile rather than desktop (including with IE9, although I haven't tried this myself yet - will do shortly).
Anyway, I found a user-agent that behaves oddly ...
Mozilla/5.0+(compatible;+MSIE+7.0;+Windows+98;+SV1)
If I try this in your own test script on your website, then it is recognised as a desktop browser ...
'id' => 'msie',
'user_agent' => 'Mozilla/4.0 (compatible; MSIE',
'fall_back' => 'generic_web_browser',
BUT, if I try this on my website test script, then it is recognised as a mobile ...
'id' => 'generic_ms_phone_os7_desktopmode',
fall_back' => 'generic_ms_phone_os7',
user_agent' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; XBLWP7; ZuneWP7)',
I have dropped my database and updated from sourceforge to get the latest, and I am running the latest version of code, so I am at a loss as to what the issue might be.
Any ideas?
I've had reports from various users of our site that their browsers are being incorrectly recognised as mobile rather than desktop (including with IE9, although I haven't tried this myself yet - will do shortly).
Anyway, I found a user-agent that behaves oddly ...
Mozilla/5.0+(compatible;+MSIE+7.0;+Windows+98;+SV1)
If I try this in your own test script on your website, then it is recognised as a desktop browser ...
'id' => 'msie',
'user_agent' => 'Mozilla/4.0 (compatible; MSIE',
'fall_back' => 'generic_web_browser',
BUT, if I try this on my website test script, then it is recognised as a mobile ...
'id' => 'generic_ms_phone_os7_desktopmode',
fall_back' => 'generic_ms_phone_os7',
user_agent' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; XBLWP7; ZuneWP7)',
I have dropped my database and updated from sourceforge to get the latest, and I am running the latest version of code, so I am at a loss as to what the issue might be.
Any ideas?