chore: scaffold D11 (.htaccess, .ht.router.php, example.gitignore)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-11-23 19:16:39 +01:00
co-authored by Mistral Vibe
parent 045bde1718
commit 700f797cc4
3 changed files with 33 additions and 9 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ if (str_contains($path, '.php')) {
// fallback to index.php.
do {
$path = dirname($path);
if (preg_match('/\.php$/', $path) && is_file(__DIR__ . $path)) {
if (str_ends_with($path, '.php') && is_file(__DIR__ . $path)) {
// Discovered that the path contains an existing PHP file. Use that as the
// script to include.
$script = ltrim($path, '/');