Changeset 2698d7f in github


Ignore:
Timestamp:
Jun 28, 2012 1:38:50 PM (11 months ago)
Author:
Aleksander Machniak <alec@…>
Children:
e154154
Parents:
b97d0e1
Message:

Fixed Konqueror browser detection

Location:
program
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_browser.php

    r041c93c r2698d7f  
    4343        $this->ns  = ($this->ns4 || strpos($HTTP_USER_AGENT, 'netscape') !== false); 
    4444        $this->ie  = !$this->opera && strpos($HTTP_USER_AGENT, 'compatible; msie') !== false; 
    45         $this->mz  = !$this->ie && strpos($HTTP_USER_AGENT, 'mozilla/5') !== false; 
     45        $this->khtml = strpos($HTTP_USER_AGENT, 'khtml') !== false; 
     46        $this->mz  = !$this->ie && !$this->khtml && strpos($HTTP_USER_AGENT, 'mozilla/5') !== false; 
    4647        $this->chrome = strpos($HTTP_USER_AGENT, 'chrome') !== false; 
    47         $this->khtml = strpos($HTTP_USER_AGENT, 'khtml') !== false; 
    4848        $this->safari = !$this->chrome && ($this->khtml || strpos($HTTP_USER_AGENT, 'safari') !== false); 
    4949 
  • program/js/common.js

    r4188c61 r2698d7f  
    6161  this.chrome = (this.agent_lc.indexOf('chrome') > 0); 
    6262  this.safari = (!this.chrome && (this.agent_lc.indexOf('safari') > 0 || this.agent_lc.indexOf('applewebkit') > 0)); 
    63   this.mz = (this.dom && !this.ie && !this.ns && !this.chrome && !this.safari && this.agent.indexOf('Mozilla') >= 0); 
    64   this.konq   = (this.agent_lc.indexOf('konqueror') > 0); 
     63  this.konq = (this.agent_lc.indexOf('konqueror') > 0); 
     64  this.mz = (this.dom && !this.ie && !this.ns && !this.chrome && !this.safari && !this.konq && this.agent.indexOf('Mozilla') >= 0); 
    6565  this.iphone = (this.safari && this.agent_lc.indexOf('iphone') > 0); 
    6666  this.ipad = (this.safari && this.agent_lc.indexOf('ipad') > 0); 
Note: See TracChangeset for help on using the changeset viewer.