Ticket #2124: 2124_1.patch

File 2124_1.patch, 542 bytes (added by Wiktor Walc, 12 years ago)
  • editor/filemanager/connectors/php/io.php

     
    155155        }
    156156        $sRealPath = realpath( './' ) ;
    157157        // #2124 ensure that no slash is at the end
    158         $sRealPath = trim($sRealPath,"\\/");
     158        $sRealPath = rtrim($sRealPath,"\\/");
    159159
    160160        $sSelfPath = $_SERVER['PHP_SELF'] ;
    161161        $sSelfPath = substr( $sSelfPath, 0, strrpos( $sSelfPath, '/' ) ) ;
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy