#2124: Path problem under Windows -----------------------------+---------------------------------------------- Reporter: tgabi333 | Type: Bug Status: new | Priority: Normal Milestone: FCKeditor 2.6.1 | Component: Server : PHP Version: | Keywords: php windows path -----------------------------+---------------------------------------------- Hello!
I noticed that FCKeditor's PHP Connector doesn't work under Windows. Linux is work as expected. The problem is in io.php file on line 156: $sRealPath = realpath( './' ) ; Under windows $sRealPath will be "c:\....\editor\filemanager\connectors\php\". That last backslash is the problem, it doesn't appear on linux systems. Thats why line 168 if ( $position === false || $position <> strlen( $sRealPath ) - strlen( $sSelfPath ) ) is true. I suggest to change this: $sRealPath = realpath( './' ) ; to $sRealPath = realpath( '.' ) ; On linux systems these calls are equivalent, but under windows second one would work as expected. -- Ticket URL: <http://dev.fckeditor.net/ticket/2124> FCKeditor <http://www.fckeditor.net> The text editor for Internet ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ FCKeditor-Trac mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fckeditor-trac
