src build elFinder-2.1-6796bb2

This commit is contained in:
nao-pon
2016-05-29 23:09:23 +09:00
parent ff4e192fca
commit 9dda18e793
5 changed files with 31 additions and 10 deletions
+1 -2
View File
@@ -212,9 +212,8 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
return $mtime;
}
$inotifywait = defined('ELFINER_INOTIFYWAIT_PATH')? ELFINER_INOTIFYWAIT_PATH : 'inotifywait';
$path = escapeshellarg($path);
$standby = max(1, intval($standby));
$cmd = $inotifywait.' '.$path.' -t '.$standby.' -e moved_to,moved_from,move,close_write,delete,delete_self';
$cmd = $inotifywait.' '.escapeshellarg($path).' -t '.$standby.' -e moved_to,moved_from,move,close_write,delete,delete_self';
$this->procExec($cmd , $o, $r);
if ($r === 0) {
// changed