mirror of
https://github.com/YGGverse/next.git
synced 2025-01-11 23:58:26 +00:00
simplify construction
This commit is contained in:
parent
e3b9f26183
commit
348d4940d3
@ -185,15 +185,15 @@ $server->start(
|
||||
// Filter goal request
|
||||
$goal = preg_replace(
|
||||
[
|
||||
'/\\\/', // unify separators
|
||||
'/(^|\/)[\.]+/', // hidden items started with dot
|
||||
'/[\.]+\//', // relative directory paths
|
||||
'/[\/]+\//', // remove extra slashes
|
||||
],
|
||||
DIRECTORY_SEPARATOR,
|
||||
NEXT_PATH . trim(
|
||||
str_replace(
|
||||
'\\', '/', filter_var($request, FILTER_SANITIZE_URL)
|
||||
)
|
||||
NEXT_PATH . filter_var(
|
||||
$request,
|
||||
FILTER_SANITIZE_URL
|
||||
)
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user