mirror of
https://github.com/YGGverse/Pulsar.git
synced 2025-03-13 05:41:21 +00:00
update request filter
This commit is contained in:
parent
f9b844bfbc
commit
5ccadde228
@ -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…
x
Reference in New Issue
Block a user