Changeset 2037

Show
Ignore:
Timestamp:
2008-06-03 22:09:40 (22 months ago)
Author:
alfonsoml
Message:

Fix the support for network paths in the asp connector. #2063

Location:
FCKeditor/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/filemanager/connectors/asp/commands.asp

    r1565 r2037  
    104104                ' Map the virtual path to the local server path of the current folder. 
    105105                Dim sServerDir 
    106                 sServerDir = ServerMapFolder( resourceType, CombinePaths(currentFolder, sNewFolderName), "CreateFolder" ) 
     106                sServerDir = ServerMapFolder( resourceType, CombineLocalPaths(currentFolder, sNewFolderName), "CreateFolder" ) 
    107107 
    108108                On Error Resume Next 
     
    172172                        Do While ( True ) 
    173173                                Dim sFilePath 
    174                                 sFilePath = sServerDir & sFileName 
     174                                sFilePath = CombineLocalPaths(sServerDir, sFileName) 
    175175 
    176176                                If ( oFSO.FileExists( sFilePath ) ) Then 
  • FCKeditor/trunk/editor/filemanager/connectors/asp/io.asp

    r1797 r2037  
    2424function CombinePaths( sBasePath, sFolder) 
    2525        CombinePaths =  RemoveFromEnd( sBasePath, "/" ) & "/" & RemoveFromStart( sFolder, "/" ) 
     26end function 
     27 
     28function CombineLocalPaths( sBasePath, sFolder) 
     29        sFolder = replace(sFolder, "/", "\") 
     30        ' The RemoveFrom* functions use RegExp, so we must escape the \ 
     31        CombineLocalPaths =  RemoveFromEnd( sBasePath, "\\" ) & "\" & RemoveFromStart( sFolder, "\\" ) 
    2632end function 
    2733 
     
    7076 
    7177        ' Return the resource type directory combined with the required path. 
    72         ServerMapFolder = CombinePaths( sResourceTypePath, folderPath ) 
     78        ServerMapFolder = CombineLocalPaths( sResourceTypePath, folderPath ) 
    7379End Function 
    7480 
     
    7985        Dim sParent 
    8086        sParent = oFSO.GetParentFolderName( folderPath ) 
     87 
     88        ' If folderPath is a network path (\\server\folder\) then sParent is an empty string. 
     89        ' Get out. 
     90        if (sParent = "") then exit sub 
    8191 
    8292        ' Check if the parent exists, or create it. 
  • FCKeditor/trunk/_whatsnew.html

    r2030 r2037  
    107107                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2056">#2056</a>] Fixed several validation 
    108108                        errors in the dialogs.</li> 
     109                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2063">#2063</a>] Fixed some problems in asp 
     110                        related to the use of network paths for the location of the uploaded files.</li> 
    109111        </ul> 
    110112        <h3>