feat: xxbb
This commit is contained in:
@@ -37,9 +37,9 @@ class RawLogController extends Controller
|
||||
return view('admin.logs.index', compact('groups', 'kind', 'path', 'device'));
|
||||
}
|
||||
|
||||
public function show(Request $request, string $file)
|
||||
public function show(Request $request, string $kind, string $file)
|
||||
{
|
||||
$kind = $this->kind($request);
|
||||
$kind = in_array($kind, self::KINDS, true) ? $kind : 'c2';
|
||||
$safe = basename($file);
|
||||
if (! preg_match('/^\d{8}\.log$/', $safe)) {
|
||||
abort(404);
|
||||
|
||||
Reference in New Issue
Block a user