Ignore:
Timestamp:
12/21/11 18:42:14 (12 years ago)
Author:
wmerlotto
Message:

Ticket #2398 - Compatibilizando codigo do Expresso, em geral, com PHP >= 5.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.html.inc.php

    r2 r5281  
    2222        { 
    2323                // should be Ok for all HTML 4 compatible browsers 
    24                 if (!eregi('(Safari)/([0-9.]+)',$_SERVER['HTTP_USER_AGENT'],$parts) && 
    25                         !eregi('compatible; ([a-z_]+)[/ ]+([0-9.]+)',$_SERVER['HTTP_USER_AGENT'],$parts)) 
    26                 { 
    27                         eregi('^([a-z_]+)/([0-9.]+)',$_SERVER['HTTP_USER_AGENT'],$parts); 
     24                if (!preg_match('/(Safari)\/([0-9.]+)/i',$_SERVER['HTTP_USER_AGENT'],$parts) && 
     25                        !preg_match('/compatible; ([a-z_]+)[\/ ]+([0-9.]+)/i',$_SERVER['HTTP_USER_AGENT'],$parts)) 
     26                { 
     27                        preg_match('/^([a-z_]+)\/([0-9.]+)/i',$_SERVER['HTTP_USER_AGENT'],$parts); 
    2828                } 
    2929                list(,$this->user_agent,$this->ua_version) = $parts; 
Note: See TracChangeset for help on using the changeset viewer.