Ticket #2063: 2063.patch
File 2063.patch, 2.9 KB (added by , 15 years ago) |
---|
-
_whatsnew.html
106 106 are applied in the image preview dialog.</li> 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> 111 113 Version 2.6</h3> -
editor/filemanager/connectors/asp/commands.asp
103 103 Else 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 109 109 … … 171 171 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 177 177 iCounter = iCounter + 1 -
editor/filemanager/connectors/asp/io.asp
25 25 CombinePaths = RemoveFromEnd( sBasePath, "/" ) & "/" & RemoveFromStart( sFolder, "/" ) 26 26 end function 27 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, "\\" ) 32 end function 33 28 34 Function GetResourceTypePath( resourceType, sCommand ) 29 35 if ( sCommand = "QuickUpload") then 30 36 GetResourceTypePath = ConfigQuickUploadPath.Item( resourceType ) … … 69 75 CreateServerFolder sResourceTypePath 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 75 81 Sub CreateServerFolder( folderPath ) … … 79 85 Dim sParent 80 86 sParent = oFSO.GetParentFolderName( folderPath ) 81 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 91 82 92 ' Check if the parent exists, or create it. 83 93 If ( NOT oFSO.FolderExists( sParent ) ) Then CreateServerFolder( sParent ) 84 94