Permalink
Browse files

[xupdate] check by is_file() in `Xupdate_Ftp::setPerm()`

  • Loading branch information...
nao-pon committed Apr 22, 2015
1 parent 88369ff commit 46bc8061d64f96164d6729a6b3d043520016602a
Showing with 1 addition and 1 deletion.
  1. +1 −1 xoops_trust_path/modules/xupdate/class/Ftp.class.php
@@ -613,7 +613,7 @@ protected function ftpMkdirByFtpPath($dir)
* @param string $file
*/
private function setPhpPerm($file) {
if ($this->phpPerm && strtolower(substr($file, -4)) === '.php') {
if ($this->phpPerm && strtolower(substr($file, -4)) === '.php' && is_file($file)) {
$this->chmod($file, $this->phpPerm);
}
}

0 comments on commit 46bc806

Please sign in to comment.