adsasd
This commit is contained in:
@@ -26,6 +26,12 @@ if ($selected && in_array($selected, $files, true)) {
|
||||
|
||||
// Raw delivery for AJAX view (no layout, plain text)
|
||||
if (isset($_GET['raw']) && $_GET['raw'] === '1') {
|
||||
if (!$selected || !in_array($selected, $files, true)) {
|
||||
http_response_code(404);
|
||||
header('Content-Type: text/plain; charset=utf-8');
|
||||
echo 'Log nicht gefunden.';
|
||||
exit;
|
||||
}
|
||||
header('Content-Type: text/plain; charset=utf-8');
|
||||
echo $content;
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user