Browse Source

update request filter

fs
yggverse 7 months ago
parent
commit
5ccadde228
  1. 12
      src/server.php

12
src/server.php

@ -114,15 +114,13 @@ $server->setHandler( @@ -114,15 +114,13 @@ $server->setHandler(
// Filter path request
$path = preg_replace(
[
'/[\.]+\//',
'/[\/]+\//',
'/(^|\/)[\.]+/', // hidden items started with dot
'/[\.]+\//', // relative directory paths
'/[\/]+\//', // remove extra slashes
],
'/',
ltrim(
trim(
$request->getPath()
),
'.'
trim(
$request->getPath()
)
);

Loading…
Cancel
Save