Skip to content

Commit

Permalink
Merge pull request from GHSA-3p73-mm7v-4f6m
Browse files Browse the repository at this point in the history
Co-authored-by: Judx <juho.holsa@gmail.com>
  • Loading branch information
fballiano and Judx committed Jan 26, 2023
1 parent 10dc25f commit ed820f3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/code/core/Mage/Core/Model/Input/Filter/MaliciousCode.php
Expand Up @@ -58,17 +58,15 @@ class Mage_Core_Model_Input_Filter_MaliciousCode implements Zend_Filter_Interfac
* Filter value
*
* @param string|array $value
* @return string|array Filtered value
* @return string|array
*/
public function filter($value)
{
$result = false;
do {
$subject = $result ? $result : $value;
$result = preg_replace($this->_expressions, '', $subject, -1, $count);
$value = preg_replace($this->_expressions, '', $value, -1, $count);
} while ($count !== 0);

return $result;
return $value;
}

/**
Expand Down

0 comments on commit ed820f3

Please sign in to comment.