fix path displaying in some cases
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -141,7 +141,7 @@ if ($page == 'overview') {
|
|||||||
|
|
||||||
foreach ($domain_array as $row) {
|
foreach ($domain_array as $row) {
|
||||||
if (strpos($row['documentroot'], $userinfo['documentroot']) === 0) {
|
if (strpos($row['documentroot'], $userinfo['documentroot']) === 0) {
|
||||||
$row['documentroot'] = makeCorrectDir(substr($row['documentroot'], strlen($userinfo['documentroot'])));
|
$row['documentroot'] = makeCorrectDir(str_replace($userinfo['documentroot'], "/", $row['documentroot']));
|
||||||
}
|
}
|
||||||
|
|
||||||
// get ssl-ips if activated
|
// get ssl-ips if activated
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ if ($page == 'overview') {
|
|||||||
while ($row = $result_stmt->fetch(PDO::FETCH_ASSOC)) {
|
while ($row = $result_stmt->fetch(PDO::FETCH_ASSOC)) {
|
||||||
if ($paging->checkDisplay($i)) {
|
if ($paging->checkDisplay($i)) {
|
||||||
if (strpos($row['homedir'], $userinfo['documentroot']) === 0) {
|
if (strpos($row['homedir'], $userinfo['documentroot']) === 0) {
|
||||||
$row['documentroot'] = substr($row['homedir'], strlen($userinfo['documentroot']));
|
$row['documentroot'] = str_replace($userinfo['documentroot'], "/", $row['homedir']);
|
||||||
} else {
|
} else {
|
||||||
$row['documentroot'] = $row['homedir'];
|
$row['documentroot'] = $row['homedir'];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user