Changeset 23 for trunk/admin/inc/FCKeditor/editor/filemanager/browser
- Timestamp:
- Mar 5, 2010, 1:53:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/inc/FCKeditor/editor/filemanager/browser/default/connectors/php/connector.php
r2 r23 53 53 $GLOBALS["UserFilesPath"] = $strBP ; 54 54 } 55 if ( ! ereg( '/$', $GLOBALS["UserFilesPath"] ) )55 if ( ! preg_match( '/\/$/', $GLOBALS["UserFilesPath"] ) ) 56 56 $GLOBALS["UserFilesPath"] .= '/' ; 57 57 … … 60 60 $GLOBALS["UserFilesDirectory"] = $Config['UserFilesAbsolutePath'] ; 61 61 62 if ( ! ereg( '/$', $GLOBALS["UserFilesDirectory"] ) )62 if ( ! preg_match( '/\/$/', $GLOBALS["UserFilesDirectory"] ) ) 63 63 $GLOBALS["UserFilesDirectory"] .= '/' ; 64 64 } … … 86 86 87 87 // Check the current folder syntax (must begin and start with a slash). 88 if ( ! ereg( '/$', $sCurrentFolder ) ) $sCurrentFolder .= '/' ;88 if ( ! preg_match( '/\/$/', $sCurrentFolder ) ) $sCurrentFolder .= '/' ; 89 89 if ( strpos( $sCurrentFolder, '/' ) !== 0 ) $sCurrentFolder = '/' . $sCurrentFolder ; 90 90
Note:
See TracChangeset
for help on using the changeset viewer.