Skip to content

Commit

Permalink
in ApacheRequest remove unnecesary variable in function sanitizeInput()
Browse files Browse the repository at this point in the history
  • Loading branch information
roboxon committed Apr 14, 2024
1 parent 5c83f1c commit cbba3a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/http/ApacheRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ private function sanitizeInput(mixed $input):mixed {
{
return $input;
}
$input = trim($input);
return filter_var($input, FILTER_SANITIZE_FULL_SPECIAL_CHARS);
return filter_var(trim($input), FILTER_SANITIZE_FULL_SPECIAL_CHARS);
}

private function getUserAgent():string {
Expand Down

0 comments on commit cbba3a4

Please sign in to comment.