Skip to content

Commit 8276280

Browse files
author
Marius Burkard
committed
Apply 1 suggestion(s) to 1 file(s)
1 parent 5ab1840 commit 8276280

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/lib/classes/system.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2744,6 +2744,7 @@ public function delete_jailkit_chroot($home_dir, $options = array()) {
27442744
switch ($opt) {
27452745
default:
27462746
if (preg_match('@^skip[ =]/?(.+)$@', $opt, $matches) ) {
2747+
$matches[1] = ltrim($matches[1], '/');
27472748
if (in_array($matches[1], $jailkit_directories)) {
27482749
$app->log("delete_jailkit_chroot: skipping removal of jailkit directory .$home_dir/".$matches[1]
27492750
. "; if this is in use as a web folder, it is insecure and should be fixed.", LOGLEVEL_WARN);

0 commit comments

Comments
 (0)