mirror of
https://github.com/YGGverse/Pulsar.git
synced 2026-03-31 17:55:37 +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;
|
$response = new \Yggverse\TitanII\Response;
|
||||||
|
|
||||||
// Filter path request
|
// Filter path request
|
||||||
$path = trim(
|
$path = preg_replace(
|
||||||
preg_replace(
|
[
|
||||||
[
|
'/[\.]+\//',
|
||||||
'/[\.]+\//',
|
'/[\/]+\//',
|
||||||
'/[\/]+\//',
|
],
|
||||||
],
|
'/',
|
||||||
'/',
|
trim(
|
||||||
$request->getPath()
|
$request->getPath()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue