mirror of
https://github.com/YGGverse/next.git
synced 2026-03-31 17:55:34 +00:00
sanitize request string
This commit is contained in:
parent
d96e876329
commit
7b0895f9af
1 changed files with 6 additions and 11 deletions
|
|
@ -82,7 +82,10 @@ class Nex implements MessageComponentInterface
|
|||
|
||||
// Filter request
|
||||
$request = trim(
|
||||
$request
|
||||
filter_var(
|
||||
$request,
|
||||
FILTER_SANITIZE_URL
|
||||
)
|
||||
);
|
||||
|
||||
// Build absolute realpath
|
||||
|
|
@ -165,16 +168,8 @@ class Nex implements MessageComponentInterface
|
|||
(string) date('c'),
|
||||
(string) $connection->remoteAddress,
|
||||
(string) $connection->resourceId,
|
||||
(string) str_replace(
|
||||
'%',
|
||||
'%%',
|
||||
$request
|
||||
),
|
||||
(string) str_replace(
|
||||
'%',
|
||||
'%%',
|
||||
$realpath
|
||||
),
|
||||
(string) $request,
|
||||
(string) $realpath,
|
||||
(string) mb_strlen(
|
||||
$response
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue