[BUGFIX] Detect Android systems properly
authorFrancois Suter <francois@typo3.org>
Tue, 10 May 2011 15:38:04 +0000 (17:38 +0200)
committerSteffen Gebert <steffen.gebert@typo3.org>
Sun, 5 Jun 2011 15:10:15 +0000 (17:10 +0200)
commit626e42863c4b40ab10f4555026cdcf9f934e861e
tree83604adbea8739d8f99c66d80d7770d0182af0ec
parent170b8c25e59db64b7a5fab787caed7ede5f68f47
[BUGFIX] Detect Android systems properly

Android system is not properly detected by
t3lib_utility_Client::getBrowserInfo() because it currently detects
Android devices as variants of a Linux system. However some browsers
don't send "Linux" in the User-Agent, so Android does not get detected
at all. This patch moves Android detection outside of the Linux
detection block. It also comes before Linux detection, so that
Android devices don't get rolled up into Linux computers.

Change-Id: I0d870a0b8e7a00bce0dbbf964338f1e83ca821cc
Resolves: #26734
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/2000
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Fedir RYKHTIK
Tested-by: Fedir RYKHTIK
Reviewed-by: Georg Ringer
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
t3lib/utility/class.t3lib_utility_client.php
tests/t3lib/utility/class.t3lib_utility_clientTest.php