Skip to content

Commit

Permalink
Merge pull request #63 from YotpoLtd/COR-1996-fix-escape-string-for-p…
Browse files Browse the repository at this point in the history
…hp-8.1

COR-1996 Fix widgets for php 8.1 - fixed escapeString to handle null
  • Loading branch information
EranAvidor authored Mar 8, 2022
2 parents 48ea580 + 3bb8b64 commit ac3b2f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Block/Yotpo.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ public function isRenderBottomlineQna()
*/
public function escapeString($str)
{
if ($str === null) {
return '';
}

return $this->_escaper->escapeHtml(strip_tags($str));
}

Expand Down

0 comments on commit ac3b2f5

Please sign in to comment.