- Timestamp:
- 2007-06-03 18:48:59 (20 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/filemanager/browser/default/connectors/php/io.php
r355 r357 112 112 // Get the slash according to the filesystem 113 113 $slash = ( strpos( $sRealPath, '/' ) === false ) ? '\\' : '/' ; 114 $sSelfPath = str_replace( '/', $slash, $sSelfPath) ;114 $sSelfPath = str_replace( '/', $slash, $sSelfPath ) ; 115 115 116 $position = strpos( $sRealPath, $sSelfPath) ;116 $position = strpos( $sRealPath, $sSelfPath ) ; 117 117 118 118 // This can check only that this script isn't run from a virtual dir 119 119 // But it avoids problems the problems that arise if it isn't checked 120 120 if ( $position === false || $position <> strlen( $sRealPath ) - strlen( $sSelfPath ) ) 121 SendError( 1, "Sorry, can't map 'UserFilesPath' to a physical path. You must set the 'UserFilesAbsolutePath' value " . $position) ;121 SendError( 1, 'Sorry, can\'t map "UserFilesPath" to a physical path. You must set the "UserFilesAbsolutePath" value in "editor/filemanager/browser/default/connectors/php/config.php".' ) ; 122 122 123 123 return substr( $sRealPath, 0, $position ) ;