Skip to content

Commit f0db7b1

Browse files
committed
AC-3632::'Price drop' Product Alert for Simple product mail not coming to customer
1 parent 315a517 commit f0db7b1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/internal/Magento/Framework/Filter/Input/MaliciousCode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function filter($value)
6161
{
6262
$replaced = 0;
6363
do {
64-
$value = preg_replace($this->_expressions, '', $value, -1, $replaced);
64+
$value = preg_replace($this->_expressions, '', $value ?? '', -1, $replaced);
6565
} while ($replaced !== 0);
6666

6767
return $this->purifier->purify($value);

lib/internal/Magento/Framework/Filter/Test/Unit/Input/MaliciousCodeTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ public function filterDataProvider()
146146
'<?=$test?>',
147147
'',
148148
],
149+
'Null Value' => [null, ''],
149150
];
150151
}
151152

0 commit comments

Comments
 (0)