simplify construction

This commit is contained in:
yggverse 2024-04-27 04:07:27 +03:00
parent e3b9f26183
commit 348d4940d3

View File

@ -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
)
);