Replace literal w/ RASPI_DEBUG_LOG

This commit is contained in:
billz
2023-10-31 22:18:23 +00:00
parent 98d5f5b64b
commit 86ac3e2ff6
4 changed files with 7 additions and 6 deletions

View File

@@ -1,11 +1,11 @@
<?php
require '../../includes/csrf.php';
require_once '../../includes/config.php';
$filePath = $_GET['filePath'];
$filename = "raspap_debug.log";
if (isset($filePath) && strpos($filePath, $filename) !== false) {
if (isset($filePath) && strpos($filePath, RASPI_DEBUG_LOG) !== false) {
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($filePath));
header('Expires: 0');