fix: index.php

This commit is contained in:
Ryan Prather 2025-04-27 23:04:10 -04:00
parent 3f6d32b995
commit 9aa49c9c2c

View File

@ -2,8 +2,8 @@
use App\Kernel;
if (preg_match("/js\/data\.json$/", $_SERVER['REQUEST_URI'])) {
print file_get_contents('js/data.json');
if (file_exists(__DIR__.$_SERVER['REQUEST_URI']) && is_readable(__DIR__.$_SERVER['REQUEST_URI']) && is_file(__DIR__.$_SERVER['REQUEST_URI'])) {
print file_get_contents(__DIR__.$_SERVER['REQUEST_URI']);
exit;
}