Changeset 5281 for trunk/phpgwapi/inc/class.html.inc.php
- Timestamp:
- 12/21/11 18:42:14 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.html.inc.php
r2 r5281 22 22 { 23 23 // 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); 28 28 } 29 29 list(,$this->user_agent,$this->ua_version) = $parts;
Note: See TracChangeset
for help on using the changeset viewer.