Recent Topics

1 Apr 15, 2008 00:12    

the current implementation of rmdir_r() in _file.funcs.php could delete more than intended because it follows symbolic links instead of deleting them.

consider a structure like this:

/dir1
- file1
/dir2
- file2
- link to /dir1

a call to rmdir_r('dir2') would delete file1 and file2, but not link to dir1 and not dir2

I changed Line 240 to this:
if( is_dir( $adfp_filepath ) && ! is_link($adfp_filepath))

so the above would delete file2 and the link and nothing from dir1

Stephan

2 Apr 15, 2008 18:16

ok, will be in 2.4.2. Thanks!


Form is loading...