Questa mattina l’aggiornamento di Firefox 17 ha interrotto l’uso di FCKeditor all’interno dei nostri sistemi.

Indagando abbiamo trovato il problema. In pratica firefox si presenta in maniera diversa, o meglio Gecko non mostra più la sua data nell’intestazione.

Nel file fckeditor_php5.php, nella funzione FCKeditor_IsCompatibleBrowser() alla riga 55:

  else if ( strpos($sAgent, 'Gecko/') !== false )
   {
       $iVersion = (int)substr($sAgent, strpos($sAgent, 'Gecko/') + 6, 8) ;
       return ($iVersion >= 20030210) ;
   }

va modificata nel modo seguente:

  else if ( strpos($sAgent, 'Gecko/') !== false )
   {
       $iVersion = (int)substr($sAgent, strpos($sAgent, 'Gecko/') + 6, 8) ;
       return ((strlen($iVersion)==8 && $iVersion >= 20030210) || (strlen($iVersion)!=8)) ;
   }

Buon Lavoro 😉

 

English Version:

This morning, the Firefox update 17 has discontinued the use of FCKeditor within our systems.

Upon investigation we found the problem. In practice firefox presents itself in a different way, or better Gecko no longer shows its date in the header.

Into the file fckeditor_php5.php, in the function FCKeditor_IsCompatibleBrowser() at row 55:

  else if ( strpos($sAgent, 'Gecko/') !== false )
   {
       $iVersion = (int)substr($sAgent, strpos($sAgent, 'Gecko/') + 6, 8) ;
       return ($iVersion >= 20030210) ;
   }

shall be edited as follow:

  else if ( strpos($sAgent, 'Gecko/') !== false )
   {
       $iVersion = (int)substr($sAgent, strpos($sAgent, 'Gecko/') + 6, 8) ;
       return ((strlen($iVersion)==8 && $iVersion >= 20030210) || (strlen($iVersion)!=8)) ;
   }

Have a good work 😉