mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Fix for downloading backup of other users
This commit is contained in:
parent
1062168fed
commit
5da09d9c5b
1 changed files with 7 additions and 0 deletions
|
@ -3,6 +3,13 @@
|
|||
error_reporting(NULL);
|
||||
session_start();
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
// Check token
|
||||
if ((!isset($_GET['token'])) || ($_SESSION['token'] != $_GET['token'])) {
|
||||
header('Location: /login/');
|
||||
exit();
|
||||
}
|
||||
|
||||
$backup = basename($_GET['backup']);
|
||||
|
||||
// Check if the backup exists
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue