From c5a49024179a685540817c3987c1e1b4e1b2cdf2 Mon Sep 17 00:00:00 2001 From: Costin Date: Mon, 25 Dec 2017 12:13:46 +0100 Subject: [PATCH] Make log message less confusing when level is only Warning. --- server/plugins-available/ftpuser_base_plugin.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/plugins-available/ftpuser_base_plugin.inc.php b/server/plugins-available/ftpuser_base_plugin.inc.php index 484a0f7da..af5870a4b 100644 --- a/server/plugins-available/ftpuser_base_plugin.inc.php +++ b/server/plugins-available/ftpuser_base_plugin.inc.php @@ -78,7 +78,7 @@ class ftpuser_base_plugin { //* Check if the resulting path is inside the docroot if(substr($data['new']['dir'], 0, strlen($web['document_root'])) != $web['document_root']) { - $app->log('User dir is outside of docroot.', LOGLEVEL_WARN); + $app->log("User dir '".$data['new']['dir']."' is outside of docroot.", LOGLEVEL_WARN); return false; } @@ -104,7 +104,7 @@ class ftpuser_base_plugin { //* Check if the resulting path is inside the docroot if(substr($data['new']['dir'], 0, strlen($web['document_root'])) != $web['document_root']) { - $app->log('User dir is outside of docroot.', LOGLEVEL_WARN); + $app->log("User dir '".$data['new']['dir']."' is outside of docroot.", LOGLEVEL_WARN); return false; } -- GitLab