Menu

#39 Incorrect detection - linux ppc [konqueror]

open
nobody
Detection (25)
5
2004-11-26
2004-11-26
Anonymous
No

Hi,
when running phpSniff with linux ppc it is detected as
platform: mac
os: ppc

Browser-String:
mozilla/5.0 (compatible; konqueror/3.3; linux; x11; ppc; de)
(khtml, like gecko)
phpSniff version

Problem is that in phpSniff.core.php in function
_get_os_info () a macintosh platform is detected, because
regexp_mac matches and it never gets to the point
checking for linux because of the elsif-statements

To solve the problem I moved the test for macintosh at the
end of the list...
this works for me and it seems that "real" macintosh
browsers are not affected

Gordin
bugreports at mockies dot de

Discussion


Log in to post a comment.

MongoDB Logo MongoDB