Commit c5a49024 authored by Costin's avatar Costin

Make log message less confusing when level is only Warning.

parent 94f452e0
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment