diff --git a/src/Atst/StackBackstage.php b/src/Atst/StackBackstage.php index 35d5f69..7a6d533 100644 --- a/src/Atst/StackBackstage.php +++ b/src/Atst/StackBackstage.php @@ -20,7 +20,7 @@ public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQ { $path = realpath($this->path); - if (false !== $path) { + if (false !== $path && is_readable($path)) { return new Response(file_get_contents($path), 503); }