Ticket #2124 (closed Bug: fixed)
Path problem under Windows
| Reported by: | tgabi333 | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | FCKeditor 2.6.1 |
| Component: | Server : PHP | Version: | |
| Keywords: | Confirmed HasPatch | Cc: |
Description
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
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
