From fd5b8080b463680cce07bdb9647972f26031183e Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 28 Apr 2024 18:37:07 +0300 Subject: [PATCH] update realpath returned on default file response --- src/nex.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nex.php b/src/nex.php index d848d99..a153feb 100644 --- a/src/nex.php +++ b/src/nex.php @@ -216,8 +216,11 @@ $server->start( // Try index file on enabled if (NEXT_FILE && file_exists($realpath . NEXT_FILE) && is_readable($realpath . NEXT_FILE)) { + // Update realpath returned on default file response + $realpath = $realpath . NEXT_FILE; + $response = file_get_contents( - $realpath . NEXT_FILE + $realpath ); }