Opened 17 years ago
Closed 17 years ago
#1744 closed New Feature (fixed)
FCKeditor.java browser detection enhancement
Reported by: | Michael Osipov | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | FCKeditor.Java 2.4 |
Component: | Server : Java | Version: | |
Keywords: | Cc: |
Description (last modified by )
takeover http://sourceforge.net/tracker/index.php?func=detail&aid=1479946&group_id=75348&atid=543655
Original author: Henrik Johansson - henc
Attachments (1)
Change History (4)
Changed 17 years ago by
Attachment: | FCKeditor.java.patch added |
---|
comment:1 Changed 17 years ago by
comment:2 Changed 17 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 17 years ago by
Milestone: | → FCKeditor.Java 2.4 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Browser detection is completely rewritten and should work as expected.
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
(x86_64); en-US; rv:1.8.0.2) Gecko/Debian-1.5.dfsg+1.5.0.2-3 Firefox/1.5.0.2
5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2
(Stated in patch...)
Patch is against the file FCKeditor.java, v2.3.
BR. Henrik Johansson