Show
Ignore:
Timestamp:
2008-01-20 18:59:56 (10 months ago)
Author:
mosipov
Message:

Added method and testcases to validate path

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor.Java/branches/2.4/src/main/java/net/fckeditor/connector/ConnectorServlet.java

    r1361 r1377  
    114114        String typeStr = request.getParameter("Type"); 
    115115        String currentFolderStr = request.getParameter("CurrentFolder"); 
    116  
     116        boolean validPath = Utils.isValidPath(currentFolderStr); 
    117117        // TODO untersuchen wie es vom Res Browser kommt 
    118118        String currentPath = constructTypeBasedFolderString(typeStr, currentFolderStr); 
     
    121121        File currentDir = new File(currentDirPath); 
    122122        if (!currentDir.exists()) { 
    123             currentDir.mkdir(); 
     123            currentDir.mkdirs(); 
    124124            logger.debug("Dir successfull created: " + currentDirPath); 
    125125        }