From 296525aac3065702262ff546df86d9b7e05001da Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 28 Apr 2024 23:27:26 +0300 Subject: [PATCH] update strpos with php 8 function --- src/nex.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nex.php b/src/nex.php index 2f83342..dbbb162 100644 --- a/src/nex.php +++ b/src/nex.php @@ -210,7 +210,7 @@ $server->start( } // Validate realpath exists, started with path defined and does not contain hidden entities - if ($realpath && str_starts_with($realpath, NEXT_PATH) && false === strpos($realpath, DIRECTORY_SEPARATOR . '.')) + if ($realpath && str_starts_with($realpath, NEXT_PATH) && !str_contains($realpath, DIRECTORY_SEPARATOR . '.')) { // Try directory if (is_dir($realpath))