Skip to content

Commit

Permalink
Refactor xss helper
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomano committed Mar 15, 2024
1 parent 5b49a72 commit b2530e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sources/Optimus/Utils/Input.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public static function isGet($name): bool
public static function xss(string|array $data): string|array
{
if (is_array($data)) {
return array_map([__CLASS__, 'xss'], $data);
return array_map([self::class, 'xss'], $data);
}

return Utils::htmlspecialchars($data, ENT_QUOTES);
Expand Down

0 comments on commit b2530e6

Please sign in to comment.