Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/inc/FCKeditor/editor/filemanager/browser/default/connectors/php/connector.php

    r2 r23  
    5353        $GLOBALS["UserFilesPath"] = $strBP ;
    5454}
    55 if ( ! ereg( '/$', $GLOBALS["UserFilesPath"] ) )
     55if ( ! preg_match( '/\/$/', $GLOBALS["UserFilesPath"] ) )
    5656        $GLOBALS["UserFilesPath"] .= '/' ;
    5757
     
    6060        $GLOBALS["UserFilesDirectory"] = $Config['UserFilesAbsolutePath'] ;
    6161
    62         if ( ! ereg( '/$', $GLOBALS["UserFilesDirectory"] ) )
     62        if ( ! preg_match( '/\/$/', $GLOBALS["UserFilesDirectory"] ) )
    6363                $GLOBALS["UserFilesDirectory"] .= '/' ;
    6464}
     
    8686
    8787        // Check the current folder syntax (must begin and start with a slash).
    88         if ( ! ereg( '/$', $sCurrentFolder ) ) $sCurrentFolder .= '/' ;
     88        if ( ! preg_match( '/\/$/', $sCurrentFolder ) ) $sCurrentFolder .= '/' ;
    8989        if ( strpos( $sCurrentFolder, '/' ) !== 0 ) $sCurrentFolder = '/' . $sCurrentFolder ;
    9090       
Note: See TracChangeset for help on using the changeset viewer.