Changeset 2108

Show
Ignore:
Timestamp:
2008-06-23 12:00:43 (5 months ago)
Author:
martinkou
Message:

Fixed #2296 : Fixed permission denied error on clicking on files in the file browser.

Location:
FCKeditor/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/filemanager/browser/default/browser.html

    r2062 r2108  
    4444                } 
    4545                catch( e ) 
    46                 { 
    47                         break ; 
    48                 } 
     46                {} 
    4947 
    5048                // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ... 
  • FCKeditor/trunk/editor/filemanager/browser/default/frmactualfolder.html

    r2062 r2108  
    4242                } 
    4343                catch( e ) 
    44                 { 
    45                         break ; 
    46                 } 
     44                {} 
    4745 
    4846                // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ... 
  • FCKeditor/trunk/editor/filemanager/browser/default/js/common.js

    r2062 r2108  
    3737                } 
    3838                catch( e ) 
    39                 { 
    40                         break ; 
    41                 } 
     39                {} 
    4240 
    4341                // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ... 
  • FCKeditor/trunk/editor/filemanager/browser/default/js/fckxml.js

    r1805 r2108  
    6262                        if ( oXmlHttp.readyState == 4 ) 
    6363                        { 
    64                                 if ( ( oXmlHttp.status != 200 && oXmlHttp.status != 304 ) || oXmlHttp.responseXML == null || oXmlHttp.responseXML.firstChild == null ) 
     64                                var oXml ; 
     65                                try 
     66                                { 
     67                                        // this is the same test for an FF2 bug as in fckxml_gecko.js 
     68                                        // but we've moved the responseXML assignment into the try{} 
     69                                        // so we don't even have to check the return status codes. 
     70                                        var test = oXmlHttp.responseXML.firstChild ; 
     71                                        oXml = oXmlHttp.responseXML ; 
     72                                } 
     73                                catch ( e ) 
     74                                { 
     75                                        try 
     76                                        { 
     77                                                oXml = (new DOMParser()).parseFromString( oXmlHttp.responseText, 'text/xml' ) ; 
     78                                        } 
     79                                        catch ( e ) {} 
     80                                } 
     81 
     82                                if ( !oXml || !oXml.firstChild || oXml.firstChild.nodeName == 'parsererror' ) 
    6583                                { 
    6684                                        alert( 'The server didn\'t send back a proper XML response. Please contact your system administrator.\n\n' + 
     
    7189                                } 
    7290 
    73                                 oFCKXml.DOMDocument = oXmlHttp.responseXML ; 
     91                                oFCKXml.DOMDocument = oXml ; 
    7492                                asyncFunctionPointer( oFCKXml ) ; 
    7593                        } 
  • FCKeditor/trunk/_whatsnew.html

    r2107 r2108  
    7575                        key will now have the default browser behavior if TabSpaces=0. It will move the 
    7676                        focus out of the editor (expect on Safari).</li> 
     77                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2296">#2296</a>] Fixed permission denied error 
     78                        on clicking on files in the file browser.</li> 
    7779        </ul> 
    7880        <p>