mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-06-07 16:32:15 +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
|
// backup files
|
||||||
if (isset($_POST['type']) && $_POST['type'] == "backup" && !empty($_POST['file'])) {
|
if (isset($_POST['type']) && $_POST['type'] == "backup" && !empty($_POST['file'])) {
|
||||||
$fileName = $_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'])) {
|
if (!empty($_POST['path'])) {
|
||||||
$relativeDirPath = fm_clean_path($_POST['path']);
|
$relativeDirPath = fm_clean_path($_POST['path']);
|
||||||
$fullPath .= "{$relativeDirPath}/";
|
$fullPath .= "{$relativeDirPath}/";
|
||||||
|
|
Loading…
Reference in a new issue