Show
Ignore:
Timestamp:
07/08/2008 02:36:45 AM (5 months ago)
Author:
Geert
Message:

Fixing #541. Allowing for letters in versions. Also added a few browsers.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/core/Kohana.php

    r2981 r2995  
    12071207                                        if (stripos(Kohana::$user_agent, $agent) !== FALSE) 
    12081208                                        { 
    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)) 
    12101210                                                { 
    12111211                                                        // Set the browser version