Changeset 2037
- Timestamp:
- 2008-06-03 22:09:40 (22 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 3 modified
-
editor/filemanager/connectors/asp/commands.asp (modified) (2 diffs)
-
editor/filemanager/connectors/asp/io.asp (modified) (3 diffs)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/filemanager/connectors/asp/commands.asp
r1565 r2037 104 104 ' Map the virtual path to the local server path of the current folder. 105 105 Dim sServerDir 106 sServerDir = ServerMapFolder( resourceType, Combine Paths(currentFolder, sNewFolderName), "CreateFolder" )106 sServerDir = ServerMapFolder( resourceType, CombineLocalPaths(currentFolder, sNewFolderName), "CreateFolder" ) 107 107 108 108 On Error Resume Next … … 172 172 Do While ( True ) 173 173 Dim sFilePath 174 sFilePath = sServerDir & sFileName174 sFilePath = CombineLocalPaths(sServerDir, sFileName) 175 175 176 176 If ( oFSO.FileExists( sFilePath ) ) Then -
FCKeditor/trunk/editor/filemanager/connectors/asp/io.asp
r1797 r2037 24 24 function CombinePaths( sBasePath, sFolder) 25 25 CombinePaths = RemoveFromEnd( sBasePath, "/" ) & "/" & RemoveFromStart( sFolder, "/" ) 26 end function 27 28 function CombineLocalPaths( sBasePath, sFolder) 29 sFolder = replace(sFolder, "/", "\") 30 ' The RemoveFrom* functions use RegExp, so we must escape the \ 31 CombineLocalPaths = RemoveFromEnd( sBasePath, "\\" ) & "\" & RemoveFromStart( sFolder, "\\" ) 26 32 end function 27 33 … … 70 76 71 77 ' Return the resource type directory combined with the required path. 72 ServerMapFolder = Combine Paths( sResourceTypePath, folderPath )78 ServerMapFolder = CombineLocalPaths( sResourceTypePath, folderPath ) 73 79 End Function 74 80 … … 79 85 Dim sParent 80 86 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 81 91 82 92 ' Check if the parent exists, or create it. -
FCKeditor/trunk/_whatsnew.html
r2030 r2037 107 107 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2056">#2056</a>] Fixed several validation 108 108 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> 109 111 </ul> 110 112 <h3>