1
0
mirror of https://github.com/prasathmani/tinyfilemanager.git synced 2025-08-06 16:57:11 +02:00

Download and Direct link problems when using with a subfolder. #907

This commit is contained in:
Prasath Mani
2022-12-03 06:17:55 +00:00
parent 97fd394a0f
commit 789b98f136
2 changed files with 30 additions and 2 deletions

View File

@@ -1688,7 +1688,10 @@ if (isset($_GET['view'])) {
?>
</p>
<div class="d-flex align-items-center mb-3">
<b><a href="?p=<?php echo urlencode(FM_PATH) ?>&amp;dl=<?php echo urlencode($file) ?>"><i class="fa fa-cloud-download"></i> <?php echo lng('Download') ?></a></b> &nbsp;
<form method="post" class="d-inline ms-2" action="?p=<?php echo urlencode(FM_PATH) ?>&amp;dl=<?php echo urlencode($file) ?>">
<input type="hidden" name="token" value="<?php echo $_SESSION['token']; ?>">
<button type="submit" class="btn btn-link text-decoration-none fw-bold p-0"><i class="fa fa-cloud-download"></i> <?php echo lng('Download') ?></button> &nbsp;
</form>
<b class="ms-2"><a href="<?php echo fm_enc($file_url) ?>" target="_blank"><i class="fa fa-external-link-square"></i> <?php echo lng('Open') ?></a></b>
<?php
// ZIP actions