Skip to content

Commit c5a4902

Browse files
committed
Make log message less confusing when level is only Warning.
1 parent 94f452e commit c5a4902

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/plugins-available/ftpuser_base_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function insert($event_name, $data) {
7878

7979
//* Check if the resulting path is inside the docroot
8080
if(substr($data['new']['dir'], 0, strlen($web['document_root'])) != $web['document_root']) {
81-
$app->log('User dir is outside of docroot.', LOGLEVEL_WARN);
81+
$app->log("User dir '".$data['new']['dir']."' is outside of docroot.", LOGLEVEL_WARN);
8282
return false;
8383
}
8484

@@ -104,7 +104,7 @@ function update($event_name, $data) {
104104

105105
//* Check if the resulting path is inside the docroot
106106
if(substr($data['new']['dir'], 0, strlen($web['document_root'])) != $web['document_root']) {
107-
$app->log('User dir is outside of docroot.', LOGLEVEL_WARN);
107+
$app->log("User dir '".$data['new']['dir']."' is outside of docroot.", LOGLEVEL_WARN);
108108
return false;
109109
}
110110

0 commit comments

Comments
 (0)