Ticket #1815: fckeditor.php.diff

File fckeditor.php.diff, 1.2 kB (added by ronkorving, 6 months ago)
  • D:/Projects/Eclipse

     
    2727 
    2828function FCKeditor_IsCompatibleBrowser() 
    2929{ 
    30         global $HTTP_USER_AGENT ; 
    31  
    32         if ( !isset( $_SERVER ) ) { 
    33                 global $HTTP_SERVER_VARS ; 
    34             $_SERVER = $HTTP_SERVER_VARS ; 
     30        if ( isset( $_SERVER ) ) 
     31        { 
     32                $sAgent = $_SERVER['HTTP_USER_AGENT'] ; 
    3533        } 
    36                  
    37         if ( isset( $HTTP_USER_AGENT ) ) 
    38                 $sAgent = $HTTP_USER_AGENT ; 
    3934        else 
    40                 $sAgent = $_SERVER['HTTP_USER_AGENT'] ; 
     35        { 
     36                global $HTTP_SERVER_VARS ; 
    4137 
     38                if ( isset( $HTTP_SERVER_VARS ) ) 
     39                { 
     40                        $sAgent = $HTTP_SERVER_VARS['HTTP_USER_AGENT'] ; 
     41                } 
     42                else 
     43                { 
     44                        global $HTTP_USER_AGENT ; 
     45                        $sAgent = $HTTP_USER_AGENT ; 
     46                } 
     47        } 
     48 
    4249        if ( strpos($sAgent, 'MSIE') !== false && strpos($sAgent, 'mac') === false && strpos($sAgent, 'Opera') === false ) 
    4350        { 
    4451                $iVersion = (float)substr($sAgent, strpos($sAgent, 'MSIE') + 5, 3) ; 
     
    6774        include_once( 'fckeditor_php4.php' ) ; 
    6875else 
    6976        include_once( 'fckeditor_php5.php' ) ; 
    70  
    71 ?>