Skip to content

Commit 440932a

Browse files
authored
Fixed error of database not downloading from UI (hestiacp#4876)
Redirection for the download request from GUI was not working, which was also redirecting to: `This site cannot be accessed The website at site/download/database/?database=dbname_db&token=token` may be temporarily down or has been permanently moved to a new web address. `ERR_INVALID_RESPONSE` @sahsanu provided the manual fix as: `sed -i 's/\$output\[1\]/\$output\[0\]/' /usr/local/hestia/web/download/database/index.php` Basically the file does save in the `/backup` folder, but was not redirecting at UI level. @jaapmarcus please review. More details: https://forum.hestiacp.com/t/18306/
1 parent f6c7f42 commit 440932a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/download/database/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
if ($return_var == 0) {
1919
header("Content-type: application/sql");
2020
header("Content-Disposition: attachment; filename=" . $output[0]);
21-
header("X-Accel-Redirect: " . $output[1]);
21+
header("X-Accel-Redirect: " . $output[0]);
2222
}

0 commit comments

Comments
 (0)