Changeset 350

Show
Ignore:
Timestamp:
2007-06-02 15:55:18 (20 months ago)
Author:
fredck
Message:

Fixed #295 and #510 : Corrected some path resolution issues with the File Browser connector for ColdFusion.

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/filemanager/browser/default/connectors/cfm/connector.cfm

    r136 r350  
    4848        lDeniedExtensions = config.deniedExtensions[url.type]; 
    4949 
     50        if ( userFilesPath eq "" ) { 
     51                userFilesPath = "/userfiles/"; 
     52        } 
     53 
    5054        // make sure the user files path is correctly formatted 
    5155        userFilesPath = replace(userFilesPath, "\", "/", "ALL"); 
     
    7579        if ( len(config.serverPath) ) { 
    7680                serverPath = config.serverPath; 
     81         
     82                if ( right(serverPath,1) neq fs ) { 
     83                        serverPath = serverPath & fs; 
     84                } 
    7785        } else { 
    78                 serverPath = replaceNoCase(getBaseTemplatePath(),replace(cgi.script_name,"/",fs,"all"),""); 
     86                serverPath = replaceNoCase(getBaseTemplatePath(),replace(cgi.script_name,"/",fs,"all"),"") & replace(userFilesPath,"/",fs,"all"); 
    7987        } 
    8088 
     
    361369<cfheader name="Cache-Control" value="no-cache, no-store, must-revalidate"> 
    362370<cfcontent reset="true" type="text/xml; charset=UTF-8"> 
    363 <cfoutput>#xmlHeader##xmlContent##xmlFooter#</cfoutput>  
     371<cfoutput>#xmlHeader##xmlContent##xmlFooter#</cfoutput> 
  • FCKeditor/trunk/_whatsnew.html

    r349 r350  
    142142                        the target directory is now being automatically created if needed when "quick uploading". 
    143143                        Thanks to sirmeili.</li> 
     144                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/295">#295</a>] [<a target="_blank" href="http://dev.fckeditor.net/ticket/510">#510</a>] Corrected some 
     145                        path resolution issues with the File Browser connector for ColdFusion.</li> 
    144146        </ul> 
    145147        <h3>