From 15ff558d5f7deb44e7ee9ea41b894b43ffb2ae90 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Fri, 7 Jun 2013 08:10:45 +0200 Subject: [PATCH] don't call a cronjob function from within the panel (safe_exec not allowed), fixes #1227 Signed-off-by: Michael Kaufmann (d00p) --- customer_ftp.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/customer_ftp.php b/customer_ftp.php index b892860f..631bcac3 100644 --- a/customer_ftp.php +++ b/customer_ftp.php @@ -270,8 +270,9 @@ if ($page == 'overview') { if ($path != $result['homedir']) { if (!file_exists($path)) { - mkDirWithCorrectOwnership($userinfo['documentroot'], $path, $result['uid'], $result['gid']); - inserttask(5); /* Let the cronjob do the rest */ + // it's the task for "new ftp" but that will + // create all directories and correct their permissions + inserttask(5); } $log->logAction(USR_ACTION, LOG_INFO, "updated ftp-account homdir for '" . $result['username'] . "'");