From a21b1f7df5228338326ebeead83b4f4c666effd2 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Wed, 9 Dec 2015 08:49:43 +0100 Subject: [PATCH] correct display of paths in domain- and ftp-overview Signed-off-by: Michael Kaufmann (d00p) --- customer_domains.php | 2 +- customer_ftp.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/customer_domains.php b/customer_domains.php index 2e0fb0f2..416f3e4b 100644 --- a/customer_domains.php +++ b/customer_domains.php @@ -141,7 +141,7 @@ if ($page == 'overview') { foreach ($domain_array as $row) { if (strpos($row['documentroot'], $userinfo['documentroot']) === 0) { - $row['documentroot'] = makeCorrectDir(substr($row['documentroot'], strlen($userinfo['documentroot']) - 1)); + $row['documentroot'] = makeCorrectDir(substr($row['documentroot'], strlen($userinfo['documentroot']))); } // get ssl-ips if activated diff --git a/customer_ftp.php b/customer_ftp.php index 606ae86e..0a86b43d 100644 --- a/customer_ftp.php +++ b/customer_ftp.php @@ -57,7 +57,7 @@ if ($page == 'overview') { while ($row = $result_stmt->fetch(PDO::FETCH_ASSOC)) { if ($paging->checkDisplay($i)) { if (strpos($row['homedir'], $userinfo['documentroot']) === 0) { - $row['documentroot'] = substr($row['homedir'], strlen($userinfo['documentroot']) - 1); + $row['documentroot'] = substr($row['homedir'], strlen($userinfo['documentroot'])); } else { $row['documentroot'] = $row['homedir']; }