Skip to content

Commit

Permalink
Cast 1st htmlspecialchars parameter as string sonata-project#5513
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Wentzell authored and greg0ire committed Apr 3, 2019
1 parent fd6d641 commit 9d6fd51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/CRUDController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,7 @@ protected function validateCsrfToken($intention)
*/
protected function escapeHtml($s)
{
return htmlspecialchars($s, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
return htmlspecialchars((string) $s, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
}

/**
Expand Down

0 comments on commit 9d6fd51

Please sign in to comment.