diff --git a/utility.php b/utility.php index 4f9b9311..6454b1c1 100644 --- a/utility.php +++ b/utility.php @@ -48,7 +48,7 @@ function asset_url(string $path): string { $realPath = realpath(__DIR__ . '/public/' . $path); - if ($realPath === false) { + if ($realPath === false || !file_exists($realPath)) { return $path; }