Ticket #2356 (closed Bug: fixed)

Opened 6 years ago

Last modified 6 years ago

IE7 Access Denied - Local Filesystem

Reported by: samuelms Owned by: martinkou
Priority: Normal Milestone: FCKeditor 2.6.3
Component: General Version: FCKeditor 2.6.2
Keywords: Confirmed IE7 Review+ Cc:

Description

Problem: Opening any of the html sample pages of FCKEditor from the filesystem in IE7 gives an "Access Denied" error coming from file fckeditor\editor\js\fckeditorcode_ie.js on line 62 with the code: "B.open("GET",A,false);".

This has been resolved by me in the post: http://www.fckeditor.net/forums/viewtopic.php?f=6&t=10424

Basically the native IE7 XmlHttpRequest Object appears to not allow requests on the filesystem. Here is the offending code causing the issues: (file fckeditor\editor\_source\internals\fcktools_ie.js)

FCKTools.CreateXmlObject = function( object ) {

var aObjs ;

switch ( object ) {

case 'XmlHttp' :

Try the native XMLHttpRequest introduced with IE7. try { return new XMLHttpRequest() ; } catch (e) {} bad for use on local filesystem

aObjs = [ 'MSXML2.XmlHttp', 'Microsoft.XmlHttp' ] ; use this instead for local filesystem break ;

case 'DOMDocument' :

aObjs = [ 'MSXML2.DOMDocument', 'Microsoft.XmlDom' ] ; break ;

}

for ( var i = 0 ; i < 2 ; i++ ) {

try { return new ActiveXObject( aObjs[i] ) ; } catch (e) {}

}

if ( FCKLang.NoActiveX ) {

alert( FCKLang.NoActiveX ) ; FCKLang.NoActiveX = null ;

} return null ;

}

Attachments

2356.patch (1.2 KB) - added by martinkou 6 years ago.

Change History

comment:1 Changed 6 years ago by martinkou

  • Keywords Confirmed IE7 added
  • Owner set to martinkou
  • Status changed from new to assigned

Changed 6 years ago by martinkou

comment:2 Changed 6 years ago by martinkou

  • Keywords Review? added

comment:3 Changed 6 years ago by fredck

  • Keywords Review+ added; Review? removed

comment:4 follow-up: ↓ 5 Changed 6 years ago by martinkou

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixed with [2215].

Click here for more info about our SVN system.

comment:5 in reply to: ↑ 4 Changed 6 years ago by samuelms

Replying to martinkou:

Fixed with [2215].

Click here for more info about our SVN system.

Sorry for not replying sooner, but this patch is the same thing that I did to fix the problem. The patch works perfectly.

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy