Changeset 3872


Ignore:
Timestamp:
07/13/09 16:56:02 (5 years ago)
Author:
alfonsoml
Message:

#2689. Avoid reencoding the "url" parameter if the connector sends it.

Location:
FCKeditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/_whatsnew.html

    r3871 r3872  
    6565                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/3880">#3880</a>] Fixed some minor 
    6666                        logical and typing mistakes in fckdomrange_ie.js.</li> 
     67                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2689">#2689</a>] If a   
     68                        custom connector tried to use the "url" attribute for files it was always reencoded.</li> 
    6769        </ul> 
    6870        <p> 
  • FCKeditor/trunk/editor/filemanager/browser/default/frmresourceslist.html

    r3272 r3872  
    9090function OpenFile( fileUrl ) 
    9191{ 
    92         window.top.opener.SetUrl( encodeURI( fileUrl ).replace( /#/g, '%23' ) ) ; 
     92        window.top.opener.SetUrl( fileUrl ) ; 
    9393        window.top.close() ; 
    9494        window.top.opener.focus() ; 
     
    146146                // Get the optional "url" attribute. If not available, build the url. 
    147147                var oFileUrlAtt = oNodes[j].attributes.getNamedItem('url') ; 
    148                 var sFileUrl = oFileUrlAtt != null ? oFileUrlAtt.value : sCurrentFolderUrl + sFileName ; 
     148                var sFileUrl = oFileUrlAtt != null ? oFileUrlAtt.value : encodeURI( sCurrentFolderUrl + sFileName ).replace( /#/g, '%23' ) ; 
    149149 
    150150                oHtml.Append( oListManager.GetFileRowHtml( sFileName, sFileUrl, sFileSize ) ) ; 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy