Skip to content

Commit b0f89e5

Browse files
author
Till Brehm
committed
Merge branch 'patch-1' into 'stable-3.1'
Make log message less confusing when level is only Warning. See merge request ispconfig/ispconfig3!696
2 parents 94f452e + c5a4902 commit b0f89e5

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)