mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-06-08 00:42:19 +02:00
Fixed path double // in operation
This commit is contained in:
parent
fe1fbdb41d
commit
f36877b74c
|
@ -468,7 +468,11 @@ if (isset($_POST['ajax']) && !FM_READONLY) {
|
|||
// backup files
|
||||
if (isset($_POST['type']) && $_POST['type'] == "backup" && !empty($_POST['file'])) {
|
||||
$fileName = $_POST['file'];
|
||||
$fullPath = FM_ROOT_PATH . '/';
|
||||
if (FM_ROOT_PATH != '/') {
|
||||
$fullPath = FM_ROOT_PATH . '/';
|
||||
} else {
|
||||
$fullPath = FM_ROOT_PATH;
|
||||
}
|
||||
if (!empty($_POST['path'])) {
|
||||
$relativeDirPath = fm_clean_path($_POST['path']);
|
||||
$fullPath .= "{$relativeDirPath}/";
|
||||
|
|
Loading…
Reference in a new issue