diff --git a/app/code/core/Mage/Core/Model/Input/Filter/MaliciousCode.php b/app/code/core/Mage/Core/Model/Input/Filter/MaliciousCode.php index bed2d44cbe4..fe6a2cd64eb 100644 --- a/app/code/core/Mage/Core/Model/Input/Filter/MaliciousCode.php +++ b/app/code/core/Mage/Core/Model/Input/Filter/MaliciousCode.php @@ -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; } /**