Fix for FCKEditor and Chrome 34 under Ubuntu - refs #7055

1.9.x
Yannick Warnier 11 years ago
parent d63623b363
commit 80abe54405
  1. 5
      main/inc/lib/fckeditor/fckeditor.php

@ -68,6 +68,11 @@ function FCKeditor_IsCompatibleBrowser()
$iVersion = $matches[1] ; $iVersion = $matches[1] ;
return ( $matches[1] >= 522 ) ; return ( $matches[1] >= 522 ) ;
} else if ( strpos($sAgent, 'Gecko') !== false && strpos($sAgent, 'rv:') !== false ) { } else if ( strpos($sAgent, 'Gecko') !== false && strpos($sAgent, 'rv:') !== false ) {
// General match for IE11
if (strpos($sAgent, 'Chrome') !== false) {
// Chrome 34 under Ubuntu might have a rv: of <11
return true;
}
// Internet Explorer 11 - goes with a X-UA-Compatible IE=EmulateIE9 header // Internet Explorer 11 - goes with a X-UA-Compatible IE=EmulateIE9 header
$iVersion = (int)substr($sAgent, strpos($sAgent, 'rv:') + 3, 2) ; $iVersion = (int)substr($sAgent, strpos($sAgent, 'rv:') + 3, 2) ;
return ($iVersion >= 11); return ($iVersion >= 11);

Loading…
Cancel
Save