summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_browser.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-09-19 17:01:57 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-09-19 17:01:57 +0000
commit2e8c2cb7bed1e60ef24a4d79ffdd361c8c727e9b (patch)
tree063fa26691a582bd0d3dd6391f0942b462893227 /roundcubemail/program/include/rcube_browser.php
parentf14dc81f3b83936ab39d5b80d11ea8686f0014cc (diff)
Fix search box on Safari and make pages validate
git-svn-id: https://svn.roundcube.net/trunk@1850 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_browser.php')
-rw-r--r--roundcubemail/program/include/rcube_browser.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_browser.php b/roundcubemail/program/include/rcube_browser.php
index 0d4766417..162844f32 100644
--- a/roundcubemail/program/include/rcube_browser.php
+++ b/roundcubemail/program/include/rcube_browser.php
@@ -43,7 +43,8 @@ class rcube_browser
$this->ns = ($this->ns4 || stristr($HTTP_USER_AGENT, 'netscape'));
$this->ie = stristr($HTTP_USER_AGENT, 'compatible; msie') && !$this->opera;
$this->mz = stristr($HTTP_USER_AGENT, 'mozilla/5');
- $this->safari = stristr($HTTP_USER_AGENT, 'safari');
+ $this->khtml = stristr($HTTP_USER_AGENT, 'khtml');
+ $this->safari = ($this->khtml || stristr($HTTP_USER_AGENT, 'safari'));
if ($this->ns) {
$test = eregi("mozilla\/([0-9\.]+)", $HTTP_USER_AGENT, $regs);