Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 959a0c1

Browse files
committed
Fix OS detection - Add iPad & iPhone
1 parent 8393b8b commit 959a0c1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/src/core/classes/class.AJXP_Utils.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,8 +1540,10 @@ public static function osFromUserAgent($useragent = null) {
15401540
'Mac OS (classic)' => '(mac_powerpc)|(macintosh)',
15411541
'QNX' => 'QNX',
15421542
'BeOS' => 'beos',
1543-
'OS2' => 'os/2',
1544-
'SearchBot'=>'(nuhk)|(googlebot)|(yammybot)|(openbot)|(slurp)|(msnbot)|(ask jeeves/teoma)|(ia_archiver)'
1543+
'Apple iPad' => 'iPad',
1544+
'Apple iPhone' => 'iPhone',
1545+
'OS2' => 'os\/2',
1546+
'SearchBot'=>'(nuhk)|(googlebot)|(yammybot)|(openbot)|(slurp)|(msnbot)|(ask jeeves\/teoma)|(ia_archiver)'
15451547
);
15461548

15471549
if($useragent == null){

0 commit comments

Comments
 (0)