summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_browser.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-09-06 17:06:38 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-09-06 17:06:38 +0000
commit43a45db48ddbf46a16ecbe362a086d1befaa9189 (patch)
tree75c041ac358ce72afce41c1e1e4176fce85e20b9 /roundcubemail/program/include/rcube_browser.php
parent97e77fd438850dc2a27745b0efbebd20cf1f7ec9 (diff)
- Fix Chrome browser was recognized as Safari
git-svn-id: https://svn.roundcube.net/trunk@3942 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_browser.php')
-rw-r--r--roundcubemail/program/include/rcube_browser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_browser.php b/roundcubemail/program/include/rcube_browser.php
index 1e30fc3a3..23ef61590 100644
--- a/roundcubemail/program/include/rcube_browser.php
+++ b/roundcubemail/program/include/rcube_browser.php
@@ -45,7 +45,7 @@ class rcube_browser
$this->mz = stristr($HTTP_USER_AGENT, 'mozilla/5');
$this->chrome = stristr($HTTP_USER_AGENT, 'chrome');
$this->khtml = stristr($HTTP_USER_AGENT, 'khtml');
- $this->safari = ($this->khtml || stristr($HTTP_USER_AGENT, 'safari'));
+ $this->safari = !$this->chrome && ($this->khtml || stristr($HTTP_USER_AGENT, 'safari'));
if ($this->ns || $this->chrome) {
$test = preg_match('/(mozilla|chrome)\/([0-9.]+)/i', $HTTP_USER_AGENT, $regs);