We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8503efa commit 4df23adCopy full SHA for 4df23ad
1 file changed
web/download/backup/index.php
@@ -5,6 +5,11 @@
5
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
6
$backup = $_GET['backup'];
7
8
+// Check if the backup exists
9
+if (!file_exists($backup)) {
10
+ exit(0);
11
+}
12
+
13
// Data
14
if ($_SESSION['user'] == 'admin') {
15
header('Content-type: application/gzip');
@@ -19,5 +24,3 @@
19
24
header("X-Accel-Redirect: /backup/" . $backup);
20
25
}
21
26
22
-
23
-?>
0 commit comments