mirror of
https://github.com/YGGverse/Pulsar.git
synced 2026-03-31 17:55:37 +00:00
sanitize request string
This commit is contained in:
parent
74f7126849
commit
93f69ef6c6
1 changed files with 6 additions and 1 deletions
|
|
@ -72,7 +72,12 @@ class Nex implements MessageComponentInterface
|
||||||
) {
|
) {
|
||||||
// Format request
|
// Format request
|
||||||
$request = '/' . ltrim(
|
$request = '/' . ltrim(
|
||||||
trim($request), '/'
|
trim(
|
||||||
|
filter_var(
|
||||||
|
$request,
|
||||||
|
FILTER_SANITIZE_URL
|
||||||
|
)
|
||||||
|
), '/'
|
||||||
);
|
);
|
||||||
|
|
||||||
// Route request
|
// Route request
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue