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);
_______________________________________________
phpGroupWare-cvs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/phpgroupware-cvs