Bug #14153 » 0000075-corrected_patch_func_copy.diff
class.t3lib_extfilefunc.php.patched Tue May 11 21:01:04 2004 | ||
---|---|---|
if ($this->checkPathAgainstMounts($theDestFile) && $this->checkPathAgainstMounts($theFile)) {
|
||
if ($this->PHPFileFunctions) {
|
||
copy ($theFile,$theDestFile);
|
||
chmod ($theDestFile, fileperms($theFile));
|
||
} else {
|
||
$cmd = 'cp "'.$theFile.'" "'.$theDestFile.'"';
|
||
$cmd = 'cp -p"'.$theFile.'" "'.$theDestFile.'"';
|
||
exec($cmd);
|
||
}
|
||
clearstatcache();
|