- auth / Mac app rebuild

This commit is contained in:
Ty Clifford
2026-07-05 16:23:17 -04:00
parent 729b29276f
commit ddaefbcc27
20 changed files with 1017 additions and 1253 deletions
+6
View File
@@ -4,6 +4,12 @@ declare(strict_types=1);
$path = parse_url($_SERVER['REQUEST_URI'] ?? '/', PHP_URL_PATH) ?: '/';
$file = __DIR__ . $path;
if (preg_match('#/(?:\.env(?:\..*)?)$#', $path)) {
http_response_code(403);
echo 'Forbidden';
return true;
}
if ($path !== '/' && is_file($file)) {
return false;
}