Opened 16 years ago

Last modified 16 years ago

#1744 closed New Feature

FCKeditor.java browser detection enhancement — at Version 2

Reported by: Michael Osipov Owned by:
Priority: Normal Milestone: FCKeditor.Java 2.4
Component: Server : Java Version:
Keywords: Cc:

Change History (3)

Changed 16 years ago by Michael Osipov

Attachment: FCKeditor.java.patch added

comment:1 Changed 16 years ago by Michael Osipov

FCKeditor.java browser detection enhancement Private: (?) No While trying out the Java/JSP-wrapper to FCKeditor I noticed that it didn't work with my version of Firefox because of it's user agent (Resulted in a ArrayNullPointerException):

Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.0.2) Gecko/Debian-1.5.dfsg+1.5.0.2-3 Firefox/1.5.0.2

Anyhow; I reworked FCKeditor.java to use the "rv:" field by a regular expression instead of "get whatever's 6 characters after the beginning of the string 'gecko'".

The patch is tested on

  • Firefox 1.5.0.2 / Mozilla/5.0 (X11; U; Linux i686

(x86_64); en-US; rv:1.8.0.2) Gecko/Debian-1.5.dfsg+1.5.0.2-3 Firefox/1.5.0.2

  • Firefox 1.5.0.2 / Mozilla/5.0 (Windows; U; Windows NT

5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2

  • Mozilla 1.7.12
  • Epiphany 1.8.3

(Stated in patch...)

Patch is against the file FCKeditor.java, v2.3.

BR. Henrik Johansson

comment:2 Changed 16 years ago by Alfonso Martínez de Lizarrondo

Description: modified (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy