phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] [19101] Fix an issue with the browser


From: Caeies
Subject: [Phpgroupware-cvs] [19101] Fix an issue with the browser
Date: Wed, 11 Mar 2009 14:17:50 +0000

Revision: 19101
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=19101
Author:   Caeies
Date:     2009-03-11 14:17:49 +0000 (Wed, 11 Mar 2009)
Log Message:
-----------
Fix an issue with the browser

Modified Paths:
--------------
    core/trunk/calendar/inc/class.html.inc.php

Modified: core/trunk/calendar/inc/class.html.inc.php
===================================================================
--- core/trunk/calendar/inc/class.html.inc.php  2009-03-11 10:30:39 UTC (rev 
19100)
+++ core/trunk/calendar/inc/class.html.inc.php  2009-03-11 14:17:49 UTC (rev 
19101)
@@ -37,9 +37,9 @@
        public function __construct()
        {
                //This should really be handled in API browser class - not the 
html class
-               if ( preg_match('/compatible; ([a-z_]+)[/ ]+([0-9.]+)/i', 
phpgw::get_var('HTTP_USER_AGENT', 'string', 'SERVER'), $parts))
+               if ( !preg_match('/compatible; ([a-z_]+)[\/ ]+([0-9.]+)/i', 
phpgw::get_var('HTTP_USER_AGENT', 'string', 'SERVER'), $parts))
                {
-                       preg_match('/^([a-z_]+)/([0-9.]+)/i', 
phpgw::get_var('HTTP_USER_AGENT', 'string', 'SERVER'), $parts);
+                       preg_match('#^([a-z_]+)/([0-9.]+)#i', 
phpgw::get_var('HTTP_USER_AGENT', 'string', 'SERVER'), $parts);
                }
                list(,$this->user_agent,$this->ua_version) = $parts;
                $this->user_agent = strtolower($this->user_agent);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]