mirror of
https://github.com/YGGverse/Pulsar.git
synced 2026-03-31 09:45:32 +00:00
trim request before replace
This commit is contained in:
parent
d2195321ae
commit
8bce4bc809
1 changed files with 7 additions and 7 deletions
|
|
@ -112,13 +112,13 @@ $server->setHandler(
|
|||
$response = new \Yggverse\TitanII\Response;
|
||||
|
||||
// Filter path request
|
||||
$path = trim(
|
||||
preg_replace(
|
||||
[
|
||||
'/[\.]+\//',
|
||||
'/[\/]+\//',
|
||||
],
|
||||
'/',
|
||||
$path = preg_replace(
|
||||
[
|
||||
'/[\.]+\//',
|
||||
'/[\/]+\//',
|
||||
],
|
||||
'/',
|
||||
trim(
|
||||
$request->getPath()
|
||||
)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue