Changeset 2995
- Timestamp:
- 07/08/2008 02:36:45 AM (3 months ago)
- Location:
- trunk/system
- Files:
-
- 2 modified
-
config/user_agents.php (modified) (5 diffs)
-
core/Kohana.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/config/user_agents.php
r2376 r2995 47 47 'hp-ux' => 'HP-UX', 48 48 'hurd' => 'GNU/Hurd', 49 'unix' => 'Unknown Unix OS' 49 'unix' => 'Unknown Unix OS', 50 50 ); 51 51 … … 67 67 'Safari' => 'Safari', 68 68 'Konqueror' => 'Konqueror', 69 'Epiphany' => 'Epiphany', 70 'Galeon' => 'Galeon', 69 71 'Mozilla' => 'Mozilla', 70 72 'icab' => 'iCab', … … 73 75 'hotjava' => 'HotJava', 74 76 'amaya' => 'Amaya', 75 'IBrowse' => 'IBrowse' 77 'IBrowse' => 'IBrowse', 76 78 ); 77 79 … … 91 93 'ericsson' => 'Ericsson', 92 94 'blackBerry' => 'BlackBerry', 93 'motorola' => 'Motorola' 95 'motorola' => 'Motorola', 94 96 ); 95 97 … … 104 106 'fastcrawler' => 'FastCrawler', 105 107 'infoseek' => 'InfoSeek Robot 1.0', 106 'lycos' => 'Lycos' 108 'lycos' => 'Lycos', 107 109 ); -
trunk/system/core/Kohana.php
r2981 r2995 1207 1207 if (stripos(Kohana::$user_agent, $agent) !== FALSE) 1208 1208 { 1209 if ($type === 'browser' AND preg_match('|'.preg_quote($agent).'[^0-9.]*+([0-9.] +)|i', Kohana::$user_agent, $match))1209 if ($type === 'browser' AND preg_match('|'.preg_quote($agent).'[^0-9.]*+([0-9.][0-9.a-z]*)|i', Kohana::$user_agent, $match)) 1210 1210 { 1211 1211 // Set the browser version
