Skip to: Site menu | Main content

Email Facebook LinkedIn Twitter Google

Blog...

FCKEditor in Coldfusion

I began using FCKEditor long before it was included with Coldfusion. I've continued to use my own implemenation even after the release of Coldfusion 8.

There was a vulnerability found in the included FCKEditor: http://www.adobe.com/support/security/bulletins/apsb09-09.html

I applied the patch to my server and it also broke my own FCKEditor instance. I received "403 Access Denied" errors when using the FCKEditor file browser. After much time and effort the solution is pretty simple:

Add this to your JVM args in jvm.config: -Dcoldfusion.fckupload=true

***CAREFUL about copying an pasting the text above. Hidden carriage returns will cause CF to fail on startup.***

Even if you are not using the Coldfusion FCKEditor you still need to enable FCKEditor uploads. The updated JAR must have a built-in request filter for "filemanager".

http vs. https links.

Thanks to Tim Jackson for bringing this one to my attention. Since I've worked in Coldfusion I've always used code similar to this:


<cfset variables.protocol = iif(CGI.SERVER_PORT EQ 443, de("https"), de("http"))>

So that I could avoid the "This page contains unsecure items." message when embedding Flash, Javascript, images, etc.


<img src="#variables.protocol#://www.foo.com/linkedimage.jpg"/>

Tim advised me that he had found a new way to avoid this without using server-side code:


<img src="//www.foo.com/linkedimages.jpg"/>

Apparently the browser retains the current protocol. I've tested this in IE7 and Firefox using images, Flash, anchors, and javascript.

BlogCFC was created by Raymond Camden. This blog is running version 5.9.1.001.