Skip to content

Commit dfbfe47

Browse files
authored
Fix backup download link — missing file= query parameter (#970)
The download link was generated as /admin/backups/?filename.zip but the download handler checks $_GET['file'], so the handler was never triggered. The browser navigated to the page instead of downloading the file, causing a JS error. Changed: url('admin/backups') . '/?' . $entry To: url('admin/backups') . '?file=' . $entry
1 parent a36c1dd commit dfbfe47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

resources/views/components/config/backups.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
while (false !== ($entry = readdir($handle))) {
114114
if ($entry != '.' && $entry != '..') {
115115
$entrys = substr($entry, 17);
116-
echo '<div class="button-entrance"><a class="buttondm button-hover icon-hover" style="color:#ffffff; background-color:#000;" href="' . url('admin/backups') . '/?' . $entry . '"><i style="color: " class="icon hvr-icon fa fa-download"></i>&nbsp; ';
116+
echo '<div class="button-entrance"><a class="buttondm button-hover icon-hover" style="color:#ffffff; background-color:#000;" href="' . url('admin/backups') . '?file=' . $entry . '"><i style="color: " class="icon hvr-icon fa fa-download"></i>&nbsp; ';
117117
print_r($entrys);
118118
echo '</a></div><br>';
119119
}

0 commit comments

Comments
 (0)