Opened 13 years ago

Closed 12 years ago

Last modified 9 years ago

#181 closed Bug (invalid)

Comments before <html> tag lead to source display on IE

Reported by: achimwestermann@… Owned by:
Priority: Normal Milestone:
Component: General Version: FCKeditor 2.3.2
Keywords: SF Pending Expired Cc:

Description

Because of the comment in fckeditor.html before the starting <html> tag my Internet Explorer 6.0.299.2180.xpsp_sp2_gdr.050301-1519 the file source is shown in the editor.

This has been discovered only with my browser (did not check the versions of colleagues).

The bug was encountered with OpenCms which integrates FCKeditor.

I patched the file as follows:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: fckeditor.html
* Main page that holds the editor.
*
* File Authors:
* Frederico Caldeira Knabben (fredck@fckeditor.net)
-->
<head>
...

With this change the behavior disappears.

Kind regards,
Achim


Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1601747&group_id=75348&atid=543653

Change History (6)

comment:1 Changed 13 years ago by Frederico Caldeira Knabben

Couldn't it be that the server is sending the page with a different content type for any reason? Maybe it is serving it as "text/plain" instead of "text/html". Couldn't OpenCMS be involved on it in any way?


Moved from SF.

comment:2 Changed 13 years ago by Frederico Caldeira Knabben

Thanks for the quick reply.

I checked by opening the editor with firefox and life http headers plugin. I cut out the relevant request:

http://localhost:8080/head/resources/editors/fckeditor/editor/fckeditor.html?InstanceName=fckeditor&Toolbar=OpenCms

GET
/head/resources/editors/fckeditor/editor/fckeditor.html?InstanceName=fckeditor&Toolbar=OpenCms
HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.12)
Gecko/20050919 Firefox/1.0.7
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer:
http://localhost:8080/head/opencms/system/workplace/editors/editor_main.jsp?resource=%2Findex.html
Cookie: JSESSIONID=F04FCBEE830B766EE52AA39B9BB0A4B0;
password=4314karneval; username=charlis@email.dk

HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Etag: W/"6045-1161163074281"
Last-Modified: Wed, 18 Oct 2006 09:17:54 GMT
Content-Type: text/html
Content-Length: 6045
Date: Thu, 23 Nov 2006 15:50:47 GMT

Seems OK. As said before: this happened only on my former IE (updated today...), not on firefox or any other IE of a collegue.

Kind regards,

Achim


Moved from SF. Original poster: achimwestermann

comment:3 Changed 13 years ago by Frederico Caldeira Knabben

Reporter: changed from Frederico Caldeira Knabben to achimwestermann@…

comment:4 Changed 13 years ago by Frederico Caldeira Knabben

Did you had the same results after the update of your IE? This thing is quite weird.

comment:5 Changed 13 years ago by Frederico Caldeira Knabben

Keywords: Pending added

comment:6 Changed 12 years ago by Frederico Caldeira Knabben

Keywords: Expired added
Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy