mirror of
https://github.com/YGGverse/next.git
synced 2026-03-31 17:55:34 +00:00
update strpos with php 8 function
This commit is contained in:
parent
6eec298bfe
commit
296525aac3
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ $server->start(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate realpath exists, started with path defined and does not contain hidden entities
|
// 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
|
// Try directory
|
||||||
if (is_dir($realpath))
|
if (is_dir($realpath))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue