[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:16:42 +0000 (17:16 +0200)
commit8baa9ad9512e32ce5a4a6908ec60de499290f5f1
treeb87102b40049b103711c7938e5881971a03b6b14
parentdd1f6495f78c2ae7bfd46babf353cffb2d876ab5
[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: I5e724802f1d8e5bf3b8a824a4fef7755eca779db
Resolves: #26734
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/1999
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
t3lib/utility/class.t3lib_utility_client.php
tests/t3lib/utility/t3lib_utility_clientTest.php