Skip to content
Snippets Groups Projects
Commit c5a49024 authored by Costin's avatar Costin
Browse files

Make log message less confusing when level is only Warning.

parent 94f452e0
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment