From df481aaf077f9db78f47cb051790880fd5f45aa3 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Mon, 11 Mar 2013 17:37:55 +0000 Subject: [PATCH] Ensure we have a slash for the root level Need a slash to specify the root level when updating the file manager --- lib/file-control.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/file-control.php b/lib/file-control.php index b74f79b..bf1e8f5 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -216,6 +216,7 @@ if ($_GET['action']=="delete") { : unlink($fullPath); $fileName = basename($fullPath); $fileLoc = dirname(str_replace($docRoot,"",$fullPath)); + if ($fileLoc=="" || $fileLoc=="\\") {$fileLoc="/";}; // Reload file manager echo '';