Skip to content

Commit b20f568

Browse files
kyrenafballianokiatng
authored
Fixed passing null is deprecated for htmlspecialchars in Mage_Core_Helper_Abstract (OpenMage#3324)
Co-authored-by: Fabrizio Balliano <[email protected]> Co-authored-by: Ng Kiat Siong <[email protected]>
1 parent 197cf79 commit b20f568

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/code/core/Mage/Core/Helper/Abstract.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ public function jsQuoteEscape($data, $quote = '\'')
343343
*/
344344
public function quoteEscape($data, $addSlashes = false)
345345
{
346+
if (!$data) {
347+
return $data;
348+
}
346349
if ($addSlashes === true) {
347350
$data = addslashes($data);
348351
}

0 commit comments

Comments
 (0)