Skip to content

Commit

Permalink
Fixed passing null is deprecated for htmlspecialchars in Mage_Core_H…
Browse files Browse the repository at this point in the history
…elper_Abstract (OpenMage#3324)

Co-authored-by: Fabrizio Balliano <fabrizio.balliano@gmail.com>
Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com>
  • Loading branch information
3 people authored Jun 30, 2023
1 parent 197cf79 commit b20f568
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/code/core/Mage/Core/Helper/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,9 @@ public function jsQuoteEscape($data, $quote = '\'')
*/
public function quoteEscape($data, $addSlashes = false)
{
if (!$data) {
return $data;
}
if ($addSlashes === true) {
$data = addslashes($data);
}
Expand Down

0 comments on commit b20f568

Please sign in to comment.