Index: /FCKeditor/trunk/editor/filemanager/connectors/php/io.php
===================================================================
--- /FCKeditor/trunk/editor/filemanager/connectors/php/io.php	(revision 1997)
+++ /FCKeditor/trunk/editor/filemanager/connectors/php/io.php	(revision 1998)
@@ -156,5 +156,5 @@
 	$sRealPath = realpath( './' ) ;
 	// #2124 ensure that no slash is at the end
-	$sRealPath = trim($sRealPath,"\\/");
+	$sRealPath = rtrim($sRealPath,"\\/");
 
 	$sSelfPath = $_SERVER['PHP_SELF'] ;
