Fix fox CSRF in /dowload/web-log/

This commit is contained in:
myvesta 2021-09-04 12:55:40 +02:00
commit 63861e4ffd
2 changed files with 9 additions and 2 deletions

View file

@ -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();
}
$v_domain = $_GET['domain'];
$v_domain = escapeshellarg($_GET['domain']);
if ($_GET['type'] == 'access') $type = 'access';