Index: /FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/tool/UtilsFile.java
===================================================================
--- /FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/tool/UtilsFile.java	(revision 3875)
+++ /FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/tool/UtilsFile.java	(revision 3876)
@@ -23,4 +23,5 @@
 import java.io.File;
 import java.io.InputStream;
+import java.util.regex.Pattern;
 
 import net.fckeditor.handlers.PropertiesLoader;
@@ -35,4 +36,7 @@
  */
 public class UtilsFile {
+	
+	protected static final Pattern ILLEGAL_CURRENT_FOLDER_PATTERN = Pattern
+			.compile("^[^/]|[^/]$|/\\.{1,2}|\\\\|\\||:|\\?|\\*|\"|<|>|\\p{Cntrl}");
 
 	/**
@@ -105,17 +109,8 @@
 		if (Utils.isEmpty(path))
 			return false;
-		if (!path.startsWith("/"))
-			return false;
-		if (!path.endsWith("/"))
-			return false;
 
-		if (!path.equals(FilenameUtils.separatorsToUnix(FilenameUtils
-				.normalize(path))))
+		if (ILLEGAL_CURRENT_FOLDER_PATTERN.matcher(path).find())
 			return false;
 		
-		// previous statement handles dot and (back) slash already
-		if (!path.equals(path.replaceAll("\\||:|\\?|\\*|\"|<|>|\\p{Cntrl}", "_")))
-    		return false;
-
 		return true;
 	}
Index: /FCKeditor.Java/trunk/java-core/src/test/java/net/fckeditor/tool/UtilsFileTest.java
===================================================================
--- /FCKeditor.Java/trunk/java-core/src/test/java/net/fckeditor/tool/UtilsFileTest.java	(revision 3875)
+++ /FCKeditor.Java/trunk/java-core/src/test/java/net/fckeditor/tool/UtilsFileTest.java	(revision 3876)
@@ -90,4 +90,11 @@
 
 	@Test
+    public void isValidPath00() {
+    	String path = null;
+    	boolean condition = UtilsFile.isValidPath(path);
+    	assertFalse(condition);
+    }
+	
+	@Test
     public void isValidPath01() {
     	String path = "";
@@ -169,4 +176,11 @@
     public void isValidPath12() {
     	String path = "/\\/";
+    	boolean condition = UtilsFile.isValidPath(path);
+    	assertFalse(condition);
+    }
+	
+	@Test
+    public void isValidPath13() {
+    	String path = "/.hidden/";
     	boolean condition = UtilsFile.isValidPath(path);
     	assertFalse(condition);
